예제 #1
0
 public LocationController(ILocationBL locationBL, IInventoryLineItemBL inventoryLineItemBL, IProductBL productBL, IMapper mapper)
 {
     _locationBL          = locationBL;
     _inventoryLineItemBL = inventoryLineItemBL;
     _productBL           = productBL;
     _mapper = mapper;
 }
예제 #2
0
 public ManagerMenu(ICustomerBL customerBL, ILocationBL locationBL, IOrderBL orderBL, IProductBL productBL, IInventoryBL inventoryBL)
 {
     _customerBL  = customerBL;
     _locationBL  = locationBL;
     _orderBL     = orderBL;
     _productBL   = productBL;
     _inventoryBL = inventoryBL;
 }
 // DrinkMenu drinkMenu = new DrinkMenu();
 public CustomerMenu(IDrinkBL drinkBL, ICustomerBL customerBL, ILocationBL locationBL, IOrderBL orderBL, InventoryBL inventoryBL)
 {
     _customerBL  = customerBL;
     _drinkBL     = drinkBL;
     _locationBL  = locationBL;
     _orderBL     = orderBL;
     _inventoryBL = inventoryBL;
 }
예제 #4
0
 public OrderController(ICustomerBL customerBL, IMapper mapper, IOrderBL orderBL, ILocationBL locationBL, IDrinkBL drinkBL, IInventoryBL inventoryBL)
 {
     _customerBL  = customerBL;
     _mapper      = mapper;
     _orderBL     = orderBL;
     _locationBL  = locationBL;
     _drinkBL     = drinkBL;
     _inventoryBL = inventoryBL;
 }
 public InventoryMenu(ILocationBL locationBL, IProductBL productBL, IInventoryBL inventoryBL, IOrderBL orderBL, IValidationService validate)
 {
     this._locationBL  = locationBL;
     this._productBL   = productBL;
     this._inventoryBL = inventoryBL;
     this._orderBL     = orderBL;
     this._validate    = validate;
     branch            = SearchBranch();
 }
 public ProductMenu(IOrderBL orderBL, ICustomerBL customerBL, IVerificationService verify, IInventoryBL inventoryBL, ILocationBL locationBL, IProductBL productBL)
 {
     _orderBL     = orderBL;
     _customerBL  = customerBL;
     _verify      = verify;
     _inventoryBL = inventoryBL;
     _locationBL  = locationBL;
     _productBL   = productBL;
 }
예제 #7
0
 public Menu(ICustomerBL customerBL, ILocationBL locationBL, IProductBL productBL, IItemBL itemBL, IOrderBL orderBL, IProductOrderBL productOrderBL)
 {
     _customerBL     = customerBL;
     _locationBL     = locationBL;
     _productBL      = productBL;
     _itemBL         = itemBL;
     _orderBL        = orderBL;
     _productOrderBL = productOrderBL;
 }
 public ManagerMenu(ICustomerBL customerBL, ILocationBL locationBL, IProductBL productBL, IInventoryBL inventoryBL, IOrderBL orderBL, ILineItemBL lineItemBL, IValidationService validate)
 {
     _customerBL  = customerBL;
     _locationBL  = locationBL;
     _productBL   = productBL;
     _inventoryBL = inventoryBL;
     _orderBL     = orderBL;
     _lineItemBL  = lineItemBL;
     _validate    = validate;
 }
예제 #9
0
 public OrderMenu(ICustomerBL customerBL, ILocationBL locationBL, IProductBL productBL, IInventoryBL inventoryBL, IOrderBL orderBL, IValidationService validate)
 {
     _customerBL  = customerBL;
     _locationBL  = locationBL;
     _productBL   = productBL;
     _inventoryBL = inventoryBL;
     _orderBL     = orderBL;
     _validate    = validate;
     customer     = SearchCustomer();
 }
예제 #10
0
 public CustomerController(ICustomerBL customerBL, ICustomerCartBL cartBL,
                           ICustomerOrderLineItemBL orderLineItemBL, ILocationBL locationBL,
                           IProductBL productBL, ICustomerOrderHistoryBL customerOrderHistoryBL, IInventoryLineItemBL inventoryLineItemBL, IMapper mapper)
 {
     _customerBL             = customerBL;
     _cartBL                 = cartBL;
     _orderLineItemBL        = orderLineItemBL;
     _locationBL             = locationBL;
     _productBL              = productBL;
     _customerOrderHistoryBL = customerOrderHistoryBL;
     _inventoryLineItemBL    = inventoryLineItemBL;
     _mapper                 = mapper;
 }
예제 #11
0
 public ManagerLoginMenu(IManagerBL managerBL, ICustomerBL customerBL, ILocationBL locationBL, IProductBL productBL, IInventoryLineItemBL inventoryLineItemsBL)
 {
     _managerBL            = managerBL;
     _customerBL           = customerBL;
     _locationBL           = locationBL;
     _productBL            = productBL;
     _inventoryLineItemsBL = inventoryLineItemsBL;
     _menu = "\n" +
             "\n[0] Sign In" +
             "\n[1] Register as Manager" +
             "\n{2] Get Managers" +
             "\n[Back] Previous Menu" +
             "\n[Exit] Exit App";
 }
예제 #12
0
 public StoreFrontMenu(IManagerBL managerBL, ICustomerBL customerBL, ILocationBL locationBL, IProductBL productBL, IInventoryLineItemBL inventoryLineItemsBL,
                       ICustomerCartBL customerCartBL, ICustomerOrderLineItemBL customerOrderLineItem, ICustomerOrderHistoryBL customerOrderHistory)
 {
     _managerBL             = managerBL;
     _customerBL            = customerBL;
     _locationBL            = locationBL;
     _productBL             = productBL;
     _inventoryLineItemsBL  = inventoryLineItemsBL;
     _customerCartBL        = customerCartBL;
     _customerOrderLineItem = customerOrderLineItem;
     _customerOrderHistory  = customerOrderHistory;
     _menu = "\nWelcome to my Store App! \nAre you a customer or manager?" +
             "\n[0] Customer" +
             "\n[1] Manager" +
             "\n[Exit] Exit";
 }
        public ManagerMenu(ICustomerBL customerBL, IProductBL productBL, ILocationBL locationBL, IInventoryBL inventoryBL, IOrderBL orderBL, ICartBL cartBL, ICartProductsBL cartProductsBL, IOrderItemsBL orderItemsBL)
        {
            _customerBL     = customerBL;
            _productBL      = productBL;
            _locationBL     = locationBL;
            _orderBL        = orderBL;
            _inventoryBL    = inventoryBL;
            _cartBL         = cartBL;
            _cartProductsBL = cartProductsBL;
            _orderItemsBL   = orderItemsBL;

            //generate menus necessary for managermenu access
            customerSearch  = new CustSearch(_customerBL, _orderBL);
            productSearch   = new ProductSearch(_productBL, _cartProductsBL, _inventoryBL);
            inventorySearch = new InventorySearch(_inventoryBL);
            orderSearch     = new OrderSearch(_orderBL, _orderItemsBL, _productBL);
        }
예제 #14
0
 public CustomerLoginMenu(ICustomerBL customerBL, ILocationBL locationBL, IProductBL productBL, IInventoryLineItemBL inventoryLineItemsBL,
                          ICustomerCartBL customerCartBL, ICustomerOrderLineItemBL customerOrderLineItem, ICustomerOrderHistoryBL customerOrderHistory)
 {
     _customerBL            = customerBL;
     _locationBL            = locationBL;
     _productBL             = productBL;
     _inventoryLineItemsBL  = inventoryLineItemsBL;
     _customerCartBL        = customerCartBL;
     _customerOrderLineItem = customerOrderLineItem;
     _customerOrderHistory  = customerOrderHistory;
     _menu = "\n" +
             "\n[0] Sign In" +
             "\n[1] Register as Customer" +
             "\n{2] Get Customers" +
             "\n[Back] Previous Menu" +
             "\n[Exit] Exit App";
 }
예제 #15
0
 public CustomerLocationMenu(Customer user, ICustomerBL customerBL, Location location, ILocationBL locationBL,
                             IProductBL productBL, IInventoryLineItemBL inventoryLineItemsBL, ICustomerCartBL customerCartBL, ICustomerOrderLineItemBL customerOrderLineItemBL, ICustomerOrderHistoryBL customerOrderHistory)
 {
     _locationBL              = locationBL;
     _location                = location;
     _user                    = user;
     _customerBL              = customerBL;
     _productBL               = productBL;
     _inventoryLineItemsBL    = inventoryLineItemsBL;
     _customerCartBL          = customerCartBL;
     _customerOrderLineItemBL = customerOrderLineItemBL;
     _customerOrderHistory    = customerOrderHistory;
     GetCart();
     _menu = "\n" +
             "\n[View] View Cart and finalize purchase" +
             "\n[Back] Previous Menu" +
             "\n[Exit] Exit App";
 }
예제 #16
0
 public ManageLocationMenu(Manager user, IManagerBL managerBL, Location location, ILocationBL locationBL, IProductBL productBL, IInventoryLineItemBL inventoryLineItemsBL)
 {
     _locationBL           = locationBL;
     _location             = location;
     _user                 = user;
     _managerBL            = managerBL;
     _productBL            = productBL;
     _inventoryLineItemsBL = inventoryLineItemsBL;
     _menu                 = "\n" +
                             "\n[0] Add All Products to Inventory" +
                             "\n[1] Add a Product to Inventory" +
                             "\n[2] Replenish Item Quantity" +
                             "\n[3] View Inventory" +
                             "\n[4] View Order History" +
                             "\n[5] " +
                             "\n[6] " +
                             "\n[Back] Previous Menu" +
                             "\n[Exit] Exit App";
 }
예제 #17
0
 public ManagerMenu(Manager manager, IManagerBL managerBL, ICustomerBL customerBL, ILocationBL locationBL, IProductBL productBL, IInventoryLineItemBL inventoryLineItemsBL)
 {
     _user                 = manager;
     _managerBL            = managerBL;
     _customerBL           = customerBL;
     _locationBL           = locationBL;
     _productBL            = productBL;
     _inventoryLineItemsBL = inventoryLineItemsBL;
     _menu                 = "\n" +
                             "\n[0] Find Customer" +
                             "\n[1] View Customers" +
                             "\n[2] View Locations" +
                             "\n[3] Add Locations" +
                             "\n[4] View Products" +
                             "\n[5] Add Product" +
                             "\n[6] Choose Location" +
                             "\n[Back] Previous Menu" +
                             "\n[Exit] Exit App";
 }
예제 #18
0
        public CustomerMenu(Customer user, ICustomerBL customerBL, ILocationBL locationBL, IProductBL productBL, IInventoryLineItemBL inventoryLineItemsBL,
                            ICustomerCartBL customerCartBL, ICustomerOrderLineItemBL customerOrderLineItem, ICustomerOrderHistoryBL customerOrderHistory)
        {
            _user                  = user;
            _customerBL            = customerBL;
            _locationBL            = locationBL;
            _productBL             = productBL;
            _inventoryLineItemsBL  = inventoryLineItemsBL;
            _customerCartBL        = customerCartBL;
            _customerOrderLineItem = customerOrderLineItem;
            _customerOrderHistory  = customerOrderHistory;
            _menu                  = $"Account Info--\n\tName:\t\t{_user.CustomerName}\n\tEmail:\t\t{_user.CustomerEmail}\n\tPhone:\t\t{_user.CustomerPhone}\n\tAddress:\t{_user.CustomerAddress}" +

                                     "\n" +
                                     "\n[1] View My Cart and Finalize Purchase" +
                                     "\n[2] View My Order History" +
                                     "\n[3] Choose Location and Shop" +
                                     "\n[Back] Previous Menu" +
                                     "\n[Exit] Exit App";
        }
예제 #19
0
 public BranchMenu(ILocationBL locationBL, IValidationService validate)
 {
     this._locationBL = locationBL;
     this._validate   = validate;
 }
예제 #20
0
 public MainMenu(ICustomerBL customerBL, ILocationBL locationBL, IOrderBL orderBL, IProductBL productBL, IInventoryBL inventoryBL)
 {
     customerMenu = new CustomerMenu(customerBL, locationBL, orderBL, productBL, inventoryBL);
     _customerBL  = customerBL;
     managerMenu  = new ManagerMenu(customerBL, locationBL, orderBL, productBL, inventoryBL);
 }
예제 #21
0
 public InventoryBL(IRepository repo, ILocationBL locationBL)
 {
     _repo       = repo;
     _locationBL = locationBL;
 }
예제 #22
0
 public MainMenu(ICustomerBL customerBL, IProductBL productBL, ILocationBL locationBL, IInventoryBL inventoryBL, IOrderBL orderBL, ICartBL cartBL, ICartProductsBL cartProductsBL, IOrderItemsBL orderItemsBL)
 {
     //create required menu views in constructor, pass in required BL/DL connections
     managerMenu = new ManagerMenu(customerBL, productBL, locationBL, inventoryBL, orderBL, cartBL, cartProductsBL, orderItemsBL);
 }