public void Should_be_able_to_create_and_connect_to_db_1()
        {
            db.CreateIfDoesNotExist("db1");

            using (var one = db.GetConnection("db1"))
            {
                Assert.That(one, Is.Not.Null);

                Assert.That(one.Connection.State, Is.EqualTo(ConnectionState.Open));
            }

            db.DeleteIfDoesExist("db1");
        }
        public void DeleteIfDoesExist(string name)
        {
            _fragmentProvider.DeleteIfDoesExist(name);

            _db.DeleteIfDoesExist(name);
        }
Esempio n. 3
0
        public void OneTimeTearDown()
        {
            var db = new DbConnectionService();

            db.DeleteIfDoesExist(ContentController.Db);
        }