public void Setup()
        {
            Database.SetInitializer(new DropCreateDatabaseAlways<GamesRentalContext>());

            _contextForTest = new GamesRentalContext();
            _contextForTest.Customers.Add(ObjectMother.GetCustomer());
            _contextForTest.SaveChanges();
        }
 public AvailableRepository()
 {
     context = new GamesRentalContext();
 }
Esempio n. 3
0
 public CustomerRepository()
 {
     context = new GamesRentalContext();
 }
Esempio n. 4
0
 public OrderRepository()
 {
     context = new GamesRentalContext();
 }