One of the most popular posts on my blog has been “EF CTP4 Tips & Tricks: Testing With Fake DbContext”. That post was built on a pre-release version of Entity Framework so I thought I’d provide an updated post on top of the DbContext API surface we ended up shipping. In this post we are … Continue reading Testing With a Fake DbContext
Testing
Programmatic ASP.Net Post Back
Introduction This post is somewhat related to my last post that discussed using the Web Dev Server, that ships with VS, to hit ASP.Net web pages from a unit test. In this post I’m going to cover how to fake a user initiated post back from C# code, this example will mimic a button click … Continue reading Programmatic ASP.Net Post Back
ASP.Net Website Tests using Web Dev Server
Introduction One of the great features that came with VS2005 was the Web Dev Server which allows us to run and debug web applications on our development box without the need to install IIS. As with most cool gadgets used by Visual Studio the web dev server is actually also a standalone component that we … Continue reading ASP.Net Website Tests using Web Dev Server
Programmatically generating web service calls
Introduction I recently wanted make a call to a third party web service without the use of a proxy class. The code shown in this post will allow you to programmatically build and submit a web service call using the HttpRequest class. Import Namespaces Add the following lines to import the required namespaces Build an … Continue reading Programmatically generating web service calls