public void TearDownFixture() { if (TearDownFixtureEnabled) { MSSqlClientHelper.DropDatabase(ServerName, DatabaseName); } }
private XPObjectSpaceProvider CreateObjectSpaceProvider() { MSSqlClientHelper.DropDatabase(ServerName, DatabaseName); MSSqlClientHelper.CreateDatabase(ServerName, DatabaseName, DataPath); string connectionString = MSSqlConnectionProvider.GetConnectionString(ServerName, DatabaseName); return(new XPObjectSpaceProvider(connectionString, null)); }