Wednesday, June 30, 2010

Unit Test .NET Business Objects Using Nmock Library

Writing unit script code for your complex business objects in a test-driven development environment really gets difficult, because they may have too many external dependencies (high coupling) on other objects.
It sometimes won't be possible for limited-budget projects to set up development environments appropriately and configure them for unit testing. Developers can overcome these issues by using mock test objects.
Read my full article in devX.
http://www.devx.com/DevXNet/Article/45071?trk=DXRSS_DOTNET

Thursday, June 10, 2010

Program a Windows Mobile GPS Device using the Intermediate Driver

A couple weeks back I was highly influenced by a small-map-based GPS (Global Positioning System) application, developed using C#, targeting windows mobile devices. Embedded GPS receivers are becoming a standard for mobile devices, and all recent Windows Mobile devices feature GPS receivers. Windows mobile users can also add third-party GPS receivers to their devices if needed.

These GPS receivers collect data from satellites, specifically latitude, longitude, altitude, speed, and direction data from four different satellites. Mobile GPS receivers refresh collected data every second and display your present location on the Microsoft MapPoint, a powerful data-mapping tool. Your location is calculated using a mathematical formula called three-dimensional trilateration, which uses the positions of the satellites and their distance from Earth. Read the full article.
http://www.devx.com/wireless/Article/44971?trk=DXRSS_LATEST

Wednesday, June 09, 2010

ASP.NET 4.0: Bi-Directional Routing using Microsoft Visual Studio 2010

Routing was first introduced with ASP.NET 3.5 SP1 as an alternative to URL rewriting and query strings. Initially routing was limited to the ASP.NET MVC framework only but with release of Microsoft Visual Studio 2010, ASP.NET 4.0 developers can now use routing with web forms also. Using routing, developers can now easily eliminate long URL's and hide file extensions too (like .aspx). Another advantage of URL routing is that developers can now easily hide the physical path/location of web pages residing in the web server. Read my codeguru article.

http://www.codeguru.com/csharp/.net/net_asp/article.php/c17319

Mocking API Responses in Azure API Management Portal

A mock API imitates a real API call by providing a realistic JSON or XML response to the requester. Mock APIs can be designed on a developer...