public PlacedOrderBusiness(IMapper mapper, IPlacedOrderRepository placedOrderRepository, IRestaurantRepository restaurantRepository, IRestaurantBranchRepository restaurantBranchRepository, IOrderChannelRepository orderChannelRepository, IRestaurantTableRepository restaurantTableRepository, IAdminAccountRepository adminAccountRepository, ICustomerRepository customerRepository, IOrderProcessRepository orderProcessRepository, ICheckoutRepository checkoutRepository, IPlacedOrderProcessStatusRepository placedOrderProcessStatusRepository, IUnitOfWork unitOfWork) { _mapper = mapper; _placedOrderRepository = placedOrderRepository; _restaurantRepository = restaurantRepository; _restaurantBranchRepository = restaurantBranchRepository; _orderChannelRepository = orderChannelRepository; _restaurantTableRepository = restaurantTableRepository; _adminAccountRepository = adminAccountRepository; _customerRepository = customerRepository; _orderProcessRepository = orderProcessRepository; _checkoutRepository = checkoutRepository; _placedOrderProcessStatusRepository = placedOrderProcessStatusRepository; _unitOfWork = unitOfWork; }
public TeamController(ITeamRepository teamRepo, ICheckoutRepository checkoutRepo, IEarningsRepository eRepo, ILogger <TeamController> logger) { checkoutsCore = new CheckoutsCore(checkoutRepo); serverTeamsCore = new ServerTeamsCore(teamRepo); earningsCore = new EarningsCore(eRepo); _barCore = new BarCore(teamRepo, checkoutRepo); _logger = logger; }
public CheckoutController( IBasketRepository basketRepository, ICheckoutRepository checkoutRepository, UserManager <AppIdentityUser> userManager) { this.basketRepository = basketRepository; this.checkoutRepository = checkoutRepository; this.userManager = userManager; }
public CheckoutController( ICheckoutRepository checkoutRepository, IDeliveryRepository deliveryRepository, IBillingRepository billingRepository) { this.checkoutRepository = checkoutRepository; this.deliveryRepository = deliveryRepository; this.billingRepository = billingRepository; }
public CheckoutService( ICheckoutRepository repository, IDiscountEngine discountEngine, IMapper mapper) { _repository = repository; _discountEngine = discountEngine; _mapper = mapper; }
public CheckoutService(ICheckoutRepository checkoutRepository, IStatusRepository statusRepository, IBookService bookService, ICheckoutHistoryService checkoutHistoryService, IUserRepository userRepository, IUnitOfWork unitOfWork) { _checkoutRepository = checkoutRepository; _statusRepository = statusRepository; _bookService = bookService; _checkoutHistoryService = checkoutHistoryService; _userRepository = userRepository; _unitOfWork = unitOfWork; }
public CheckoutController(ICheckoutRepository coRepository, ILogger <CheckoutController> logger, IStaffMemberRepository sRepo, IJobRepository jRepo, ITeamRepository teamRepo, IEarningsRepository earningsRepo) { _checkoutsCore = new CheckoutsCore(coRepository); _logger = logger; _staffCore = new StaffMembersCore(sRepo); _jobCore = new JobCore(jRepo); _barCore = new BarCore(teamRepo, coRepository); _serverTeamCore = new ServerTeamsCore(teamRepo); _earningsCore = new EarningsCore(earningsRepo); }
/// <summary> /// Initializes a new instance of the <see cref="CheckoutController" /> class. /// </summary> /// <param name="accountManager">The account manager.</param> /// <param name="contactFactory">The contact factory.</param> /// <param name="checkoutRepository">The checkout repository.</param> /// <param name="logger">The logger.</param> public CheckoutController( [NotNull] IAccountManager accountManager, [NotNull] IContactFactory contactFactory, [NotNull] ICheckoutRepository checkoutRepository, [NotNull] ILogger logger) : base(accountManager, contactFactory) { _logger = logger; _checkoutRepository = checkoutRepository; }
public ItemController(IConfiguration config, IItemRepository itemRep, ICheckoutRepository checkoutRep, IStudentRepository studentRep, IEmployeeRepository employeeRep, IWebHostEnvironment hosting, CryptoController cryptoController) { _config = config; _itemRep = itemRep; _checkoutRep = checkoutRep; _studentRep = studentRep; _hosting = hosting; _cryptoController = cryptoController; _employeeRep = employeeRep; }
public CheckoutRepositoryTests() { _mocks = new Mocks(); _checkoutRepository = new CheckoutRepository( _mocks.AccountManager, _mocks.ContactFactory, _mocks.CartManager, _mocks.OrderManager, _mocks.PaymentManager, _mocks.ShippingManager, _mocks.ProductResolver); }
public SaleService(ISaleRepository saleRepository, ICheckoutRepository checkoutRepository) { this.saleRepository = saleRepository; this.checkoutRepository = checkoutRepository; }
public CheckoutsCore(ICheckoutRepository repository) { _repository = repository; groupFormatter = new GroupedCheckoutsFormatter(); }
// Using dependency injection to inject the repositories to the service. public CheckoutService(ICheckoutRepository checkoutRepo, IProductsRepository productsRepo, IDiscountsRepository discountsRepo) { _checkoutRepo = checkoutRepo; _productsRepo = productsRepo; _discountsRepo = discountsRepo; }
public CheckoutController(ICheckoutRepository repo, IMapper mapper) { _repo = repo; _mapper = mapper; }
public CartController(IProductRepository productRepository, ICheckoutRepository iCheckoutRepository) { this._iProductRepository = productRepository; _iCheckoutRepository = iCheckoutRepository; }
public CheckoutService(ICheckoutRepository checkoutRepository) { this.checkoutRepository = checkoutRepository; }
public CheckoutService(ICheckoutRepository checkout, IShoppingCartRepository shoppingCart) { _checkout = checkout; _shoppingCart = shoppingCart; }
public CheckoutsController(ICheckoutRepository checkoutRepository) { _checkoutRepository = checkoutRepository; }
public StudentController(IStudentRepository studentRep, ICheckoutRepository checkoutRep) { _studentRep = studentRep; _checkoutRep = checkoutRep; }
public BarCore(ITeamRepository teamRepository, ICheckoutRepository checkoutRepo) { _teamRepository = teamRepository; _checkoutRepository = checkoutRepo; }
public CheckoutService(IMapper mapper, ICheckoutRepository checkoutRepository) { _mapper = mapper; _checkoutRepository = checkoutRepository; }