Ejemplo n.º 1
0
 public void Setup()
 {
     using (IDbConnection dbConnection = new SqliteConnectionFactory().Create())
     {
         var createProduct = new CreateProductTable();
         dbConnection.Execute(createProduct.Query());
     }
 }
Ejemplo n.º 2
0
 public void Setup()
 {
     using (IDbConnection dbConnection = new SqliteConnectionFactory().Create())
     {
         var createProduct = new CreateProductTable();
         dbConnection.Execute(createProduct.Query());
     }
 }
        public void Setup()
        {
            using (IDbConnection dbConnection = new SqliteConnectionFactory().Create())
            {
                var createProduct = new CreateProductTable();
                dbConnection.Execute(createProduct.Query());

                InsertProductWithName(dbConnection, FirstProductName);

                InsertProductWithName(dbConnection, SecondProductName);

                InsertProductWithName(dbConnection, ThirdProductName);
            }
        }
Ejemplo n.º 4
0
        public void Setup()
        {
            using (IDbConnection dbConnection = new SqliteConnectionFactory().Create())
            {
                var createProduct = new CreateProductTable();
                dbConnection.Execute(createProduct.Query());

                InsertProductWithName(dbConnection, FirstProductName);

                InsertProductWithName(dbConnection, SecondProductName);

                InsertProductWithName(dbConnection, ThirdProductName);
            }
        }