Deborah's Developer MindScape






         Tips and Techniques for Web and .NET developers.

Archive for September, 2012

September 28, 2012

Web API Help Page and XML Comments

Filed under: ASP.NET,ASP.NET Web API,C#,VB.NET @ 1:32 am

The virtues of a Web API Help Page were extolled in a prior post. That prior post demonstrated the "out of the box" functionality of the Microsoft ASP.NET Web API Help Page. This post extends that functionality to include the XML comments from your code. You can adjust the configuration file for the Help Page […]

Discovering your Web API

Filed under: ASP.NET,ASP.NET Web API,C#,VB.NET @ 12:47 am

If your ASP.NET Web API service is on the ‘net and no one is around to explain it, does it provide a service? Unlike no one hearing the tree falling in the woods, this question is more than a philosophical thought experiment. It could be a big issue for the clients needing your service. [See […]

September 26, 2012

Running Your Unit Tests Continuously

Filed under: C#,Testing,VB.NET,Visual Studio @ 6:56 pm

One of the new unit testing features in VS 2012 (Premium or Ultimate) is the continuous test runner. When turned on, it automatically executes your unit tests after every successful build. Digressing a moment … in the early 1990’s Shari Lewis and Lamb Chop would sing a version of "The Song that Never Ends" at […]

September 25, 2012

Adding Simple Exception Handling to your Web API Service

Filed under: ASP.NET,ASP.NET Web API,C#,VB.NET @ 1:47 am

There is nothing perfect in life, not even an ASP.NET Web API service. The service may not understand the provided parameters, or may not find the requested data, or may have trouble connecting to the database. Whatever the issue, if the service cannot return the desired data it would be nice to instead return an […]

September 24, 2012

Building a JavaScript Client for a Web API Service

Filed under: ASP.NET,ASP.NET Web API,C#,JavaScript,VB.NET @ 12:54 am

An ASP.NET Web API service provides support for many different types of client applications. One such client is a JavaScript application. This post provides a very simple JavaScript client you can use to test your Web API service. [See this prior post for an introduction to building an ASP.NET Web API service. The service created […]

September 23, 2012

Using IE 9 and F12 to Debug your Web API Service

Filed under: ASP.NET,ASP.NET Web API,C#,VB.NET @ 7:39 pm

Internet Explorer 9 allows you to see the HTTP request and response information using the F12 developer tools. This can be useful when debugging or testing your ASP.NET Web API service. [See this prior post for an introduction to building an ASP.NET Web API service. The service created in that post is the example service […]

The World’s Simplest Web API/POCO Example

Filed under: ASP.NET,ASP.NET Web API,C#,VB.NET @ 6:28 pm

This post demonstrates how to use the ASP.NET Web API to access plain old custom objects (POCO) and build a service for a line of business application. No Entity Framework (EF). The Web API is a new easy-to-use framework that allows you to build a service that can send or receive data over HTTP to […]

September 16, 2012

Test Explorer in Visual Studio 2012

Filed under: Testing @ 7:30 pm

One of the new things about testing in Visual Studio 2012 is that it is now available in *all* editions of Visual Studio all the way to Visual Studio Express! The Test Explorer in Visual  Studio 2012 replaces the Test View window in Visual Studio 2010. The following posts outline the Test Explorer features: Layout […]

101 Ways to Run Tests with Visual Studio 2012

Filed under: C#,Testing,VB.NET,Visual Studio @ 3:59 pm

OK 101 is an exaggeration, but there are many ways to run your tests in Visual Studio 2012. From the test code file While you are writing or editing a test method, you can right click anywhere within the method and run or debug the test. [Red rectangle added for illustration.] All of the tests […]

Searching and Grouping in VS 2012 Test Explorer

Filed under: C#,Testing,VB.NET,Visual Studio @ 2:59 pm

Visual Studio 2012 Test Explorer has extensive searching and limited grouping capabilities. (Visual Studio 2010’s Test View window had more grouping options by way of its many sorting parameters.) Searching Entering text into the Test Explorer Search box filters the list of tests to those containing the entered text. In the example below, entering "customer" […]

Next Page »

© 2014 Deborah's Developer MindScape   Provided by WPMU DEV -The WordPress Experts   Hosted by Microsoft MVPs