public void TestResetDatabase()
        {
            ProductSQLDB db      = new ProductSQLDB(dataSource);
            DBCommand    command = new DBCommand();

            command.CommandText = "usp_testingResetData";
            command.CommandType = CommandType.StoredProcedure;
            db.RunNonQueryProcedure(command);
        }
Beispiel #2
0
        public void Setup()
        {
            db    = new ProductSQLDB(dataSource);
            props = new ProductProps();

            DBCommand command = new DBCommand();

            command.CommandText = "usp_testingResetData";
            command.CommandType = CommandType.StoredProcedure;
            db.RunNonQueryProcedure(command);

            testp               = new ProductProps();
            testp.ID            = 1;
            testp.quantity      = 10;
            testp.code          = "XXXX";
            testp.price         = 99.99m;
            testp.description   = "This is a test product";
            testp.ConcurrencyID = 1;
        }