Example #1
0
 public HomeMenu(StoreAppContext context, IManagerRepoActions managerRepo, ICustomerRepoActions customerRepo, ILocationRepoActions locationRepo, IBaseballBatRepoActions baseballBatRepo, IOrderRepoActions orderRepo, IInventoryRepoActions inventoryRepo)
 {
     this.context         = context;
     this.managerRepo     = managerRepo;
     this.customerRepo    = customerRepo;
     this.locationRepo    = locationRepo;
     this.baseballBatRepo = baseballBatRepo;
     this.orderRepo       = orderRepo;
     this.inventoryRepo   = inventoryRepo;
 }
        public SignupMenu(StoreAppContext context, IManagerRepoActions managerRepoActions, ICustomerRepoActions customerRepoActions, ILocationRepoActions locationRepoActions, IBaseballBatRepoActions baseballBatRepoActions, IOrderRepoActions orderRepoActions, IInventoryRepoActions inventoryRepoActions)
        {
            this.context = context;

            this.customerRepoActions    = customerRepoActions;
            this.managerRepoActions     = managerRepoActions;
            this.locationRepoActions    = locationRepoActions;
            this.inventoryRepoActions   = inventoryRepoActions;
            this.baseballBatRepoActions = baseballBatRepoActions;
            this.orderRepoActions       = orderRepoActions;

            this.customerActions = new CustomerActions(context, customerRepoActions);
        }
        public ManagerMainMenu(StoreAppContext context, IManagerRepoActions managerRepoActions, ILocationRepoActions locationRepoActions, IInventoryRepoActions inventoryRepoActions, IOrderRepoActions orderRepoActions, IBaseballBatRepoActions batRepoActions, Location location)
        {
            this.context              = context;
            this.managerRepoActions   = managerRepoActions;
            this.inventoryRepoActions = inventoryRepoActions;
            this.orderRepoActions     = orderRepoActions;
            this.batRepoActions       = batRepoActions;

            this.managerActions   = new ManagerActions(context, managerRepoActions);
            this.inventoryActions = new InventoryActions(context, inventoryRepoActions);
            this.orderActions     = new OrderActions(context, orderRepoActions);
            this.batActions       = new BaseballBatActions(context, batRepoActions);

            this.location = location;
        }
Example #4
0
        public CustomerMainMenu(StoreAppContext context, ICustomerRepoActions customerRepoActions, ILocationRepoActions locationRepoActions, IOrderRepoActions orderRepoActions, IInventoryRepoActions inventoryRepoActions, IBaseballBatRepoActions batRepoActions, Customer signedInCustomer, Location location)
        {
            this.context = context;

            this.customerActions  = new CustomerActions(context, customerRepoActions);
            this.locationActions  = new LocationActions(context, locationRepoActions);
            this.inventoryActions = new InventoryActions(context, inventoryRepoActions);
            this.orderActions     = new OrderActions(context, orderRepoActions);
            this.batActions       = new BaseballBatActions(context, batRepoActions);

            this.customerRepoActions  = customerRepoActions;
            this.locationRepoActions  = locationRepoActions;
            this.orderRepoActions     = orderRepoActions;
            this.inventoryRepoActions = inventoryRepoActions;
            this.batRepoActions       = batRepoActions;

            this.currLocation     = location;
            this.signedInCustomer = signedInCustomer;
        }
Example #5
0
 public InventoryActions(StoreAppContext context, IInventoryRepoActions inventoryRepo)
 {
     this.context       = context;
     this.inventoryRepo = inventoryRepo;
 }