Wrox Programmer Forums
|
BOOK: Professional ASP.NET Design Patterns
This is the forum to discuss the Wrox book Professional ASP.NET Design Patterns by Scott Millett; ISBN: 978-0-470-29278-5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET Design Patterns section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 10th, 2011, 08:44 PM
Authorized User
 
Join Date: Dec 2010
Posts: 23
Thanks: 3
Thanked 2 Times in 2 Posts
Default Integration Testing with data

Scott,
When running your integration tests, do you use a separate "test" database instance and populate it with data during the test "SetUp" step? And then remove/undo the data during the "TearDown" step.

Or do you build up an in-memory object graph using a fake/in-memory repository and pass that around for testing?
 
Old January 11th, 2011, 06:04 AM
elbandit's Avatar
Wrox Author
 
Join Date: May 2007
Posts: 107
Thanks: 10
Thanked 17 Times in 15 Posts
Default

Hi ksouthworth,

Yes I use a seperate test database, I don't like to use a fake repository as this isn't really testing the application through the layers i.e. I am not testing agains't a real database.

I am working on the source code for my next book and its up on codeplex http://agilenet.codeplex.com/. If you take a look at this project in a couple of weeks you will see how I use a test database and clean it before each feature.

Cheers
Scott
 
Old January 11th, 2011, 10:38 AM
Authorized User
 
Join Date: Dec 2010
Posts: 23
Thanks: 3
Thanked 2 Times in 2 Posts
Default

ok, great. Just pre-ordered the book as well, btw





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 7: Unit Testing with the Unit Testing Framework antwarpes BOOK: Professional Application Lifecycle Management with Visual Studio 2010 3 September 25th, 2011 08:47 AM
Chapter 12 - Testing our data Store Gandalf_the_Grey BOOK: Beginning ASP 3.0 2 March 18th, 2010 01:03 PM
Integration Services - Dynamically build connection objects for Microsoft Access data hugoscp SQL Server 2005 0 March 15th, 2010 10:58 AM
data integration/sharing cpojoe BOOK: Beginning SharePoint 2007: Building Team Solutions with MOSS 2007 ISBN: 978-0-470-12449-9 4 November 9th, 2008 06:01 AM
Secure MSAccess db ASP Data Page Integration Will Woodward Classic ASP Databases 1 October 26th, 2005 08:32 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.