connie 发表于 2005-12-20 11:49:28

Simplify Data Layer Unit Testing using Enterprise Services

原文链接:http://msdn.microsoft.com/msdnmag/issues/05/06/UnitTesting/

This article discusses:
Unit testing principles
Database state management
Enterprise Services and COM+ 1.5 basics
Services Without Components

Despite all the hype surrounding unit testing and Test Driven Development (TDD) many developers don't see them as useful processes that are applicable to the production of real-world applications. One reason is that once you get down to the intricacies of application development, all of the easy testing you've heard so much about can vanish. You may find yourself writing unit tests that are hard to implement against real code. This is often the case in database testing, where TDD can quickly lose its appeal, and force you to revert your processes to the previous real-world methodologies your team employed. Here, I'll present some techniques to make your testing process easier, even when developing real-world applications, using unit testing.

Contents

The State of Database Testing
Keeping Consistent State
Database Restore
ADO.NET Transaction Object
COM+ Transaction—Inherit ServicedComponent
Simple, Easy, and Painless
COM+ 1.5
Unit Testing in Visual Studio 2005 Team System
Conclusion
页: [1]
查看完整版本: Simplify Data Layer Unit Testing using Enterprise Services