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

            _contextForTest = new GamesRentalContext();
            _contextForTest.Customers.Add(ObjectMother.GetCustomer());
            _contextForTest.SaveChanges();
        }
예제 #2
0
 public AvailableRepository()
 {
     context = new GamesRentalContext();
 }
예제 #3
0
 public CustomerRepository()
 {
     context = new GamesRentalContext();
 }
예제 #4
0
 public OrderRepository()
 {
     context = new GamesRentalContext();
 }