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;
        }
Beispiel #2
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;
        }