public OrderBLL(IOrderRepo stub) { _repo = stub; _productrepo = new ProductRepoStub(); _customerrepo = new CustomerRepoStub(); _accountrepo = new AccountRepoStub(); }
public ChefController(IUserRepo uR, IOrderRepo oR, IMealRepo mR, IOrderProductRepo opR) { oRepo = oR; uRepo = uR; mRepo = mR; opRepo = opR; }
public UserService(IUserRepo userRepo, IOrderRepo orderRepo, IMapper mapper, ILogger <UserService> logger) { _userRepo = userRepo; _orderRepo = orderRepo; _mapper = mapper; _logger = logger; }
public CustomerBLL() { _repo = new CustomerRepo(); _accountrepo = new AccountRepo(); _orderrepo = new OrderRepo(); _productrepo = new ProductService(); }
public OrderShippingApplicationService( IDbContextProvider <IReferenceDatabase> dbContextProvider, IOrderRepo orderRepo) { this.DbContextProvider = dbContextProvider ?? throw new ArgumentNullException(nameof(dbContextProvider)); this.OrderRepo = orderRepo ?? throw new ArgumentNullException(nameof(orderRepo)); }
public OrderService(IOrderRepo _repo, IHttpClientFactory clientFactory, IOptions <AppSettings> appSettings, IMapper mapper) : base(_repo) { _clientFactory = clientFactory; _appSettings = appSettings.Value; _mapper = mapper; _orderUrl = _appSettings.LeviathanUrl + _orderPath; }
public OrderService(IOrderRepo repo) { this.repo = repo; this.locationService = new LocationService((ILocationRepo)repo); this.productService = new ProductService((IProductRepo)repo); }
public OrderController(ILoginRepo loginRepo, IOrderRepo orderRepo, ICartRepo cartRepo, IProductRepo productRepo) { _orderRepo = orderRepo; _loginRepo = loginRepo; _cartRepo = cartRepo; _productRepo = productRepo; }
public OrderController(IOrderRepo orderRepo, IPackRepo packRepo, IUserRepo userRepo, ICardRepo cardRepo) { _orderRepo = orderRepo; _packRepo = packRepo; _userRepo = userRepo; _cardRepo = cardRepo; }
public OrdersModel(UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IOrderRepo orderRepo) { _userManager = userManager; _signInManager = signInManager; _orderRepo = orderRepo; }
public OrderBLL() { _repo = new OrderRepo(); _productrepo = new ProductRepo(); _customerrepo = new CustomerRepo(); _accountrepo = new AccountRepo(); }
public BakedController(ICustomerRepo customer, IItemRepo item, IOrderRepo order, IMapper mapper) { _customer = customer; _item = item; _order = order; _mapper = mapper; }
public OrderService(IOrderRepo orderRepo, IStoreRepo storeRepo, ICategoryProductRepo categoryProductRepo, IUserRepo userRepo, IOrderDetailRepo orderDetailRepo) { this.orderRepo = orderRepo; this.storeRepo = storeRepo; this.categoryProductRepo = categoryProductRepo; this.userRepo = userRepo; this.orderDetailRepo = orderDetailRepo; }
public OrderService(IOrderRepo orderRepo, IProductRepo productRepo, ICustomerRepo customerRepo, IPaymentService paymentService, IShipStuff shippingService) { _orderRepo = orderRepo; _productRepo = productRepo; _customerRepo = customerRepo; _paymentService = paymentService; _shippingService = shippingService; }
public OrderService(IOrderRepo orderRepo, IProductRepo productRepo, ICustomerRepo customerRepo, IPaymentService paymentService, IBuildShips shipBuilder) { _orderRepo = orderRepo; _productRepo = productRepo; _customerRepo = customerRepo; _paymentService = paymentService; _shipBuilder = shipBuilder; }
public HomeController(ILogger <HomeController> logger, IStoreRepo StoreRepo, ICustomerRepo CustomerRepo, IOrderRepo OrderRepo, IProductRepo ProductRepo) { _logger = logger; _storeRepo = StoreRepo; _customerRepo = CustomerRepo; _orderRepo = OrderRepo; _productRepo = ProductRepo; }
public AdminController(UserManager <ApplicationUser> userManager, RoleManager <IdentityRole> roleManager, IAccomRepo accomRepo, ITypeRepo typeRepo, IOrderRepo orderRepo) { _userManager = userManager; _roleManager = roleManager; _accomRepo = accomRepo; _typeRepo = typeRepo; _orderRepo = orderRepo; }
public ShoppingCartController(ILogger <ShoppingCartController> logger, IStoreRepo StoreRepo, ICustomerRepo CustomerRepo, IOrderRepo OrderRepo, IProductRepo ProductRepo, IShoppingCart ShoppingCart) { _logger = logger; _storeRepo = StoreRepo; _customerRepo = CustomerRepo; _orderRepo = OrderRepo; _productRepo = ProductRepo; _shoppingCart = ShoppingCart; }
public OrderController(IGenericsRepo <Order> OrderGenericsRepo, IBasketRepo basketRepo, UserManager <User> userManager, IMapper mapper, IOrderRepo orderRepo, IGenericsRepo <Address> addressRepo) { _mapper = mapper; _userManager = userManager; _orderRepo = orderRepo; _address = addressRepo; _basketRepo = basketRepo; _orderGenericsRepo = OrderGenericsRepo; }
public ShopController(IRobotoRepo robotoRepo, IConfiguration configuration, IBasketRepo basketRepo, IOrderRepo orderRepo, UserManager <ApplicationUser> userManager) { _robotoRepo = robotoRepo; _basketRepo = basketRepo; _orderRepo = orderRepo; _userManager = userManager; Configuration = configuration; }
public Order(IOrderRepo orderRepo , IDataLogger dataLogger , IMapper mapper , IClientOrderAuthorization clientOrderAuthorization) { _orderRepo = orderRepo; _dataLogger = dataLogger; _mapper = mapper; _clientOrderAuthorization = clientOrderAuthorization; }
/// <summary> /// Bring in the information from the data layer for products, basket, /// checkout, emailSender /// </summary> /// <param name="robotoRepo"></param> /// <param name="configuration"></param> /// <param name="basketRepo"></param> /// <param name="orderRepo"></param> /// <param name="emailSender"></param> /// <param name="userManager"></param> public CheckoutController(IRobotoRepo robotoRepo, IConfiguration configuration, IBasketRepo basketRepo, IOrderRepo orderRepo, IEmailSender emailSender, UserManager <ApplicationUser> userManager) { _robotoRepo = robotoRepo; _basketRepo = basketRepo; _orderRepo = orderRepo; _userManager = userManager; _emailSender = emailSender; Configuration = configuration; }
public OrderController(IApothecaryRepo apothecaryRepo, IOrderRepo orderRepo, IMedicineRepo medicineRepo, ILogger <OrderController> logger, ISelectService selectService) { _apothecaryRepo = apothecaryRepo; _orderRepo = orderRepo; _medicineRepo = medicineRepo; _logger = logger; _selectService = selectService; }
public CustomerController(ICustomerRepo customerRepo, ILocationRepo locationRepo, IOrderItemRepo orderItemRepo, IOrderRepo orderRepo, ICupcakeRepo cupcakeRepo, ILogger <CustomerController> logger) { LocRepo = locationRepo; CustomerRepo = customerRepo; OrderItemRepo = orderItemRepo; OrderRepo = orderRepo; CupcakeRepo = cupcakeRepo; _logger = logger; }
public Mapping() { Project2Entities entities = new Project2Entities(); ShoppingCartRepo = new ShoppingCartRepo(entities); UserRepo = new UserRepo(entities); CustomPizzaRepo = new CustomPizzaRepo(entities); StandardProductRepo = new StandardProductRepo(entities); CustIngredientsRepo = new CustIngredientsRepo(entities); OrderRepo = new OrderRepo(entities); OrderDetailsRepo = new OrderDetailRepo(entities); }
public OrderVM(Order order, IOrderRepo orderRepo, IPizzaRepo pizzaRepo) { Order = order; SelectedPizzas = orderRepo.GetPizzasAsync(order.OrderId).Result; Pizzasorder = new MultiSelectList(pizzaRepo.GetPizzasAsync().Result, "PizzaId", "Name", SelectedPizzas); foreach (var pizza in pizzaRepo.GetPizzasAsync().Result) { Dictionary <Pizza, List <Size> > PizzaSizes = new Dictionary <Pizza, List <Size> >(); PizzaSizes.Add(pizza, pizzaRepo.GetPizzaSizes(pizza.Name).Result); } }
public OrderHistoryMenu(Customer customer, lacrosseContext context, ICustomerRepo customerRepo, IInventoryRepo inventoryRepo, IProductRepo productRepo, IOrderRepo orderRepo, ILocationRepo locationRepo) { this.customer = customer; this.customerRepo = customerRepo; this.productRepo = productRepo; this.orderRepo = orderRepo; this.inventoryRepo = inventoryRepo; this.locationRepo = locationRepo; this.customerServices = new CustomerServices(customerRepo); this.locationService = new LocationServices(locationRepo); this.productServices = new ProductServices(productRepo); this.orderService = new OrderServices(orderRepo); this.inventoryService = new InventoryServices(inventoryRepo); }
public OrderController(ICustomerRepo customerRepo, ILocationRepo locationRepo, IOrderRepo orderRepo, ICupcakeRepo cupcakeRepo, IOrderItemRepo orderItemRepo, ILocationInventoryRepo locationInventoryRepo, IRecipeItemRepo recipeItemRepo, ILogger <OrderController> logger) { LocRepo = locationRepo; CustomerRepo = customerRepo; OrderRepo = orderRepo; CupcakeRepo = cupcakeRepo; OrderItemRepo = orderItemRepo; LocationInventoryRepo = locationInventoryRepo; RecipeItemRepo = recipeItemRepo; _logger = logger; }
public OrderController(KadettenContext context, IOrderRepo orderRepo, IClientRepo clientRepo, ITicketOrderRepo ticketOrderRepo, ITicketRepo ticketRepo, IKadettRepo kadettRepo, ILogger <OrderController> logger , IUserRepo userRepo, IEmailSenderService emailSenderService, IHostingEnvironment env) { _logger = logger; _context = context; _orderRepo = orderRepo; _ticketOrderRepo = ticketOrderRepo; _clientRepo = clientRepo; _ticketRepo = ticketRepo; _userRepo = userRepo; _kadettRepo = kadettRepo; _emailSenderService = emailSenderService; HostingEnvironment = env; }
public OrdersController( IOrderRepo orderRepo, ILogger <OrdersController> logger, DataContext dataContext ) { dataContext.Orders.Add(new Order { Id = 0, User = dataContext.Users.First() }); _orderRepo = orderRepo; _logger = logger; _dataContext = dataContext; }
public UnitOfWork( AuctionDbContext dbContext, IBidRepo bidRepo, ICategoryRepo categoryRepo, IItemRepo itemRepo, IOrderRepo orderRepo, IPaymentRepo paymentRepo ) { _dbContext = dbContext; _bidRepo = bidRepo; _categoryRepo = categoryRepo; _itemRepo = itemRepo; _orderRepo = orderRepo; _paymentRepo = paymentRepo; }
public static IOrderRepo GetRepo() { string logType = ConfigurationManager.AppSettings["repotype"]; //ConfigurationSaveMode blah = ConfigurationSaveMode.Modified; //blah if (logType == "m") { _currentRepo = new MockOrdersRepo(); } else { _currentRepo = new ProdOrdersRepo(); } return _currentRepo; }
public OrderManager() { string mode = ConfigurationManager.AppSettings["appName"]; if (mode == "Test") { var repo = new TestOrderRepo(); _repo = repo; } else { var repo = new ProdOrderRepo(); _repo = repo; _taxrepo = new TaxRepo(); _productrepo = new ProductRepo(); } }
public OrderRepoTest(IOrderRepo rep) { this.repo = rep; wi11 = new Order { Name = "wi11" }; wi12 = new Order { Name = "wi12" }; wi21 = new Order { Name = "wi21" }; wi22 = new Order { Name = "wi22" }; }
public PizzaOrdersVM(IOrderRepo orderRepo, IPizzaRepo pizzaRepo, Order order) { Order = order; SelectedPizzas = orderRepo.GetPizzasAsync(order.OrderId).Result; //Voor de pizza's in een order SelectedOrderPizzas = orderRepo.GetOrderPizzasAsync(order.OrderId).Result; //Voor de prijs uit de tussentabel te halen SelectedOrderSizes = orderRepo.GetOrderSizes(order.OrderId).Result; //Om de grootte van de pizza op te halen Pizzas = new MultiSelectList(pizzaRepo.GetPizzasAsync().Result, "PizzaId", "Name", SelectedPizzas); PizzaSizes = new Dictionary <string, SelectList>(); foreach (var pizza in pizzaRepo.GetPizzasAsync().Result) { PizzaSizes.Add(pizza.Name, new SelectList(pizzaRepo.GetPizzaSizes(pizza.Name).Result, "SizeId", "Name", SelectedPizzaSizes)); } }
public OrderBLL(IOrderRepo stub) { _repo = stub; }
public OrderBLL() { _repo = new OrderRepo(); }