public void Setup()
 {
     using (IDbConnection dbConnection = new SqliteConnectionFactory().Create())
     {
         var createProduct = new CreateProductTable();
         dbConnection.Execute(createProduct.Query());
     }
 }
Beispiel #2
0
 public void Setup()
 {
     using (IDbConnection dbConnection = new SqliteConnectionFactory().Create())
     {
         var createProduct = new CreateProductTable();
         dbConnection.Execute(createProduct.Query());
     }
 }
        public void TearDown()
        {
            using (IDbConnection dbConnection = new SqliteConnectionFactory().Create())
            {
                var createProduct = new DeleteProduct();
                dbConnection.Execute(createProduct.All());

                var dropProductTable = new DropProductTable();
                dbConnection.Execute(dropProductTable.Query());
            }
        }
Beispiel #4
0
        public void TearDown()
        {
            using (IDbConnection dbConnection = new SqliteConnectionFactory().Create())
            {
                var createProduct = new DeleteProduct();
                dbConnection.Execute(createProduct.All());

                var dropProductTable = new DropProductTable();
                dbConnection.Execute(dropProductTable.Query());
            }
        }