public void Setup() { Database.SetInitializer(new DropCreateDatabaseAlways<GamesRentalContext>()); _contextForTest = new GamesRentalContext(); _contextForTest.Customers.Add(ObjectMother.GetCustomer()); _contextForTest.SaveChanges(); }
public AvailableRepository() { context = new GamesRentalContext(); }
public CustomerRepository() { context = new GamesRentalContext(); }
public OrderRepository() { context = new GamesRentalContext(); }