public void TearDownTask()
            {
                _manager.Dispose();

                _manager.Invoking(man => man.CreateOrGetLocalDb(Db1))
                .ShouldThrow <Exception>()
                .Where(exception => exception.Message.ToLower().Contains("disposed"));

                //((int)_masterConnection.ExecuteScalar($"select count(*) from sys.databases where name = '{_dB1DbName}'"))
                //    .Should().Be(0, "The Db1 database should be removed after disposing the manager");

                //((int)_masterConnection.ExecuteScalar($"select count(*) from sys.databases where name = '{_dB2DbName}'"))
                //    .Should().Be(0, "The Db2 database should be removed after disposing the manager");
            }
Exemple #2
0
 public void TearDownTask()
 {
     _temporaryLocalDbManager.Dispose();
 }
Exemple #3
0
 public void TearDownTask()
 {
     _tempDbManager.Dispose();
 }
Exemple #4
0
 public void after_each()
 {
     _connectionManager.Dispose();
 }