Пример #1
0
        private void Test_ReadList()
        {
            PizzaWorldContext _db = new PizzaWorldContext();

            Assert.NotNull(_db.Stores);
            Assert.IsType <List <Store> >(_db.Stores.ToList());
        }
Пример #2
0
        private void Test_ReadCrust()
        {
            PizzaWorldContext _db = new PizzaWorldContext();

            Assert.NotNull(_db.Crust);
            Assert.IsType <List <Crust> >(_db.Crust.ToList());
        }
Пример #3
0
        private void Test_ReadList()
        {
            PizzaWorldContext _db = new PizzaWorldContext();

            Assert.NotNull(_db.Topping);
            Assert.IsType <List <Topping> >(_db.Topping.ToList());
        }
Пример #4
0
        private void Test_ReadOne()
        {
            PizzaWorldContext _db = new PizzaWorldContext();

            Assert.NotNull(_db.Stores);
            //just grab anyone
            Assert.IsType <Store>(_db.Stores.ToList().Last());
        }
Пример #5
0
        private void Test_ReadOne()
        {
            PizzaWorldContext _db = new PizzaWorldContext();

            Assert.NotNull(_db.Topping);
            //just grab anyone
            Assert.IsType <Topping>(_db.Topping.ToList().Last());
        }
 public IngredientRepository(PizzaWorldContext context)
 {
     _context = context;
 }
Пример #7
0
 public ClientRepository(PizzaWorldContext context)
 {
     _context = context;
 }
Пример #8
0
 public PizzaRepository(PizzaWorldContext context)
 {
     _context = context;
 }
Пример #9
0
 public ScooterRepository(PizzaWorldContext context)
 {
     _context = context;
 }