public CustomerMenu(SavvyContext context, DBMapper mapper) { this.repo = new SavvyRepo(context, mapper); productMenu = new ProductMenu(context, mapper, customer); cartMenu = new CartMenu(); //orderhistorymenu = new OrderHistoryMenu(context, mapper); }
//Checking locations are returned public void ActuallyGetsAllLocations() { using var test1 = new SavvyContext(); SavvyRepo repo = new SavvyRepo(test1, new DBMapper()); List <SavvyDB.Entities.Location> locations = repo.GetLocations(); Assert.NotNull(locations); }
public ManagerMenu(SavvyRepo repo) { this.repo = repo; this.locationtask = new LocationTask(repo); this.inventorytask = new InventoryTask(repo); this.producttask = new ProductTask(repo); this.ordertask = new OrderTask(repo); this.orderitemtask = new OrderItemTask(repo); }
public OrderHistoryMenu(SavvyContext context, DBMapper mapper) { this.repo = new SavvyRepo(context, mapper); this.locationtask = new LocationTask(repo); this.inventorytask = new InventoryTask(repo); this.producttask = new ProductTask(repo); this.ordertask = new OrderTask(repo); this.orderitemtask = new OrderItemTask(repo); this.customertask = new CustomerTask(repo); }
public CartMenu() { SavvyContext context = new SavvyContext(); DBMapper mapper = new DBMapper(); this.repo = new SavvyRepo(context, mapper); this.locationtask = new LocationTask(repo); this.inventorytask = new InventoryTask(repo); this.producttask = new ProductTask(repo); this.carttask = new CartTask(repo); this.cartitemtask = new CartItemTask(repo); this.ordertask = new OrderTask(repo); this.orderitemtask = new OrderItemTask(repo); }
public InventoryTask(SavvyRepo repo) { this.repo = repo; }
public LocationTask(SavvyRepo repo) { this.repo = repo; }
public OrderTask(SavvyRepo repo) { this.repo = repo; }
public CartTask(SavvyRepo repo) { this.repo = repo; }
public ProductTask(SavvyRepo repo) { this.repo = repo; }
public CustomerTask(SavvyRepo repo) { this.repo = repo; }
public ManagerTask(SavvyRepo repo) { this.repo = repo; }
public ProductMenu(SavvyContext context, DBMapper mapper, Customer Customer) { this.repo = new SavvyRepo(context, mapper); this.Customer = Customer; }