Geeks With Blogs
// ThomasWeller C#/.NET software development, software integrity, life as a freelancer, and all the rest Automation
Testing Entity Framework applications, pt. 3: NDbUnit

This is the third part of the three part series that deals with the issue of faking test data in the context of a legacy app that was built with Microsoft's Entity Framework on top of an MS SQL Server database – an architecture that can be found very often, and that originally came up in the broader context of writing User Acceptance Tests. It shows how you could handle such a scenario with the NDbUnit framework.

Posted On Thursday, November 10, 2011 7:36 AM

Testing Entity Framework applications, pt. 2: Typemock

This is the second part of the three part series that deals with the issue of faking test data in the context of a legacy app that was built with Microsoft's Entity Framework on top of an MS SQL Server database – an architecture that can be found very often, and that originally came up in the broader context of writing User Acceptance Tests. It shows how you could handle such a scenario with the Typemock Isolator tool.

Posted On Tuesday, November 8, 2011 7:27 AM

Testing Entity Framework applications, pt. 1

This is the first of a three part series that deals with the issue of faking test data in the context of a legacy app that was built with Microsoft's Entity Framework on top of an MS SQL Server database – a scenario that can be found very often, and that originally came up in the broader context of writing User Acceptance Tests. It describes a sample application, discusses some general aspects of unit testing in a database context, and also some more specific aspects of the here discussed EF/MSS

Posted On Sunday, November 6, 2011 10:25 AM

An introductory presentation about testing with MSTest, Visual Studio, and Team Foundation Server 2010

A presentation about the MSTest framework (aka. Visual Studio Unit Testing), some additional tools (e.g. Moq, Moles, White), how this is supported in Visual Studio, and how it integrates into the broader context of a TFS environment.

Posted On Monday, February 21, 2011 8:05 PM

dotCover - a new kid on the (development) block

These days, JetBrains (the manufacturer of ReSharper (R#)) released the beta version of a new code coverage tool – dotCover. Here are my first impressions about it…

Posted On Friday, July 16, 2010 11:34 AM

Mocking the Unmockable: Using Microsoft Moles with Gallio

Usual opensource mocking frameworks can mock only interfaces and virtual methods. In contrary to that, Microsoft Moles can ‘mock’ virtually anything. Here's a little overview over this framework, together with a suitable Gallio extension...

Posted On Wednesday, April 28, 2010 1:36 PM

Integration testing an ASP.NET MVC application without web server or browser

Sometimes, it seems just too complicated or expensive to test-drive a certain component in an ASP.NET MVC context, or it would require the use of some browser automation framework. To make testing easier in such cases, this post introduces a Gallio/MbUnit test fixture that builds on top of a framework for integration testing ASP.NET MVC applications without the need for any browser or server, but still running in the real (non-mocked) ASP.NET runtime...

Posted On Saturday, December 12, 2009 6:25 AM

Gallio 3.1 is here

A few days ago, a new version of Gallio was released, my favorite Test and Automation platform. Although the official version number suggests only a small progression, it actually is a major upgrade that brings a wealth of new features. This is a first look at the two features that attracted me most...

Posted On Friday, September 18, 2009 9:55 AM

Automating database script execution

Almost every software project comes with a database. But although this is quite common, managing database related tasks is not very handy from the development point of view. To make life somewhat easier, this post demonstrates a way to automate sql script execution for MS SQL Server, using the Gallio Automation Platform.

Posted On Tuesday, September 8, 2009 5:37 PM

Keeping your enums in sync with database strings

In some scenarios, you may have a database that contains text data in a column which is restricted to a certain set of discrete values. In such a case it is a good idea to use an enumeration for representing these data in your domain. This post demonstrates an easy and effective way to put this mapping under test.

Posted On Tuesday, August 25, 2009 4:01 AM

Keeping your enums in sync with your database

Having an enum in code that corresponds to a database table is a common scenario in enterprise application development. - For example you may have an 'OrderStatus' enum in your business logic and a corresponding database table 'ORDERSTATUS' in your database. In such a scenario the enum-table relation might be at risk to go out of sync. This post introduces a simple but useful unit test fixture, that keeps an eye on this for the entire project lifetime...

Posted On Saturday, August 22, 2009 7:18 AM

Testing the social web

At the moment, this blog post only is kind of a stub. I need it as a target for testing...

Posted On Sunday, February 14, 2010 4:54 PM

Making Selenium 1.0.1 work with Firefox 3.6

Shows how to patch the error that is encountered with the Selenium web testing framework when running it against the latest version of the Firefox browser (3.6)...

Posted On Sunday, February 14, 2010 10:00 AM

It's the maintenance, stupid! (or: Something is rotten in developerland.)

Most people - even the overwhelming majority of programmers - would say that the main activity of a software developer is "writing source code". But this is a fatal misconception - about 75% of all time and money (sometimes even more) is spent on some sort of maintenance activity. Far too little effort goes in the future maintainability of a software product during actual development, which in turn leads to software systems that cause substantial technical and financial problems..

Posted On Wednesday, January 27, 2010 2:03 PM

Copyright © Thomas Weller | Powered by: GeeksWithBlogs.net | Join free