Class IsolatedIntegrationTests
Allows integration tests to run in isolation as for each test a clean database with current schema and default objects is created.
[Category.IsolatedIntegration]
public class IsolatedIntegrationTests : AutomatedTestsWithLocalDB
- Inheritance
-
objectIsolatedIntegrationTests
- Inherited Members
- Extension Methods
Remarks
The isolated integration tests use LocalDB to create and drop databases when needed. It works with two types of database. The master database is created using SQL scripts from the solution. For each modification of this folder a new master database is created. The master database is detached after it has been created and its files are copied to create an instance database that a running test will use. The instance and master databases share a name, but the file names are different. The instance database is removed when a test finishes and a master database, that is out of date, is removed automatically.
Constructors
IsolatedIntegrationTests()
public IsolatedIntegrationTests()
Methods
IsolatedIntegrationTestsFixtureSetup()
Test fixture set up.
public void IsolatedIntegrationTestsFixtureSetup()
IsolatedIntegrationTestsFixtureTearDown()
Test fixture clean up.
public void IsolatedIntegrationTestsFixtureTearDown()
IsolatedIntegrationTestsSetup()
Test set up.
public void IsolatedIntegrationTestsSetup()
IsolatedIntegrationTestsTearDown()
Test clean up.
public void IsolatedIntegrationTestsTearDown()