public OrderController(IOrdersManager ordersManager, ICitiesManager citiesManager, ICustomersManager customersManager, IDeliversManager deliversManager) { OrderManager = ordersManager; CitiesManager = citiesManager; CustomerManager = customersManager; DeliverManager = deliversManager; }
public CheckoutController(IShopingCartManager cartRepository, IProductManager productRepository, ICustomersManager customerRepository, IOrderManager orderRepository) { customerManager = customerRepository; cartManager = cartRepository; productManager = productRepository; orderManager = orderRepository; }
public DishController(IDishesManager dishesManager, IRestaurantsManager restaurantsManager, ICourierManager courierManager, IOrder_dishesManager order_dishesManager, IOrdersManager orderManager, ICitiesManager citiesManager, ICustomersManager customerManager) { DishesManager = dishesManager; RestaurantsManager = restaurantsManager; CourierManager = courierManager; Order_dishesManager = order_dishesManager; OrderManager = orderManager; CitiesManager = citiesManager; CustomerManager = customerManager; }
public TransportOrdersController( ITransportOrdersManager manager, ICustomersManager customersManager, IUniqueNumberProvider numberProvider) : base(manager) { this.customerManager = customersManager; this.numberProvider = numberProvider; ActionSuccess += ClientBaseController_ActionSuccess; }
public OrdersController(IOrdersManager ordersManager, ICustomersManager customersManager, IDeliverersManager deliverersManager, IDishesManager dishesManager, IOrderDishesManager orderDishesManager, IOrdersStatusHistoryManager ordersStatusHistoryManager, IOrdersStatusManager ordersStatusManager) { this.ordersManager = ordersManager; this.customersManager = customersManager; this.deliverersManager = deliverersManager; this.dishesManager = dishesManager; this.orderDishesManager = orderDishesManager; this.ordersStatusHistoryManager = ordersStatusHistoryManager; this.ordersStatusManager = ordersStatusManager; }
public OrdersController( IOrdersManager manager, ICustomersManager customersManager, IUniqueNumberProvider numberProvider, IAdditionalCostsManager additionalCostsManager) : base(manager) { this.customerManager = customersManager; this.numberProvider = numberProvider; this.additionalCostsManager = additionalCostsManager; ActionSuccess += ClientBaseController_ActionSuccess; }
static void Main(string[] args) { // Commented out on Part III // carsManager = new CarsManager(); // customersManager = new CustomersManager(); // rentalsManager = new RentalsManager(customersManager, carsManager); // Added on Part III (yes, the best would be not to instantiate the types below here but in a container instead, which we are not using so far...) carsManager = new CarsManager(new CarFileService()); customersManager = new CustomersManager(new CustomerFileService()); rentalsManager = new RentalsManager(customersManager, carsManager, new RentalFileService()); MainMenu(); }
public TemporaryBillController(ITemporaryBillManager temporaryBillManager, IHttpContextAccessor httpContextAccessor, IMotorLiftsManager motorLiftsManager, ICustomersManager customersManager, IMotorTypesManager motorTypesManager, IEmployeeManager employeeManager, IServicesManager servicesManager, IAccessoriesManager accessoriesManager , IMotorManufactureManager motorManufactureManager, IAccountManager accountManager) { this._temporaryBillManager = temporaryBillManager; this._motorLiftsManager = motorLiftsManager; this._customersManager = customersManager; this._motorTypesManager = motorTypesManager; this._employeeManager = employeeManager; this._servicesManager = servicesManager; this._accessoriesManager = accessoriesManager; this._httpContextAccessor = httpContextAccessor; this._motorManufactureManager = motorManufactureManager; this._accountManager = accountManager; }
public CustomerService(IAdminService adminService, ISystemService systemService, IAdminLookupItemsService adminLookupItemsService, IAdminEmailAddressService adminEmailAddressService, IAdminPhoneNumberService adminPhoneNumberService, IAdminUsersService adminUsersService, ISystemAddressService systemAddressService, ISystemPhoneNumberService systemPhoneNumberService, ISystemWebsiteService systemWebsiteService, ISystemPointOfContactService systemPointOfContactService, ISystemLookupItemService systemLookupItemService, ISystemUserService systemUserService, ICustomersManager customersManager, IHashingService hashingService, IConfiguration configuration, IWebHostEnvironment webHostEnvironment) : base(configuration, webHostEnvironment) { _hashingService = hashingService; _systemService = systemService; _adminService = adminService; _adminLookupItemsService = adminLookupItemsService; _adminEmailAddressService = adminEmailAddressService; _adminPhoneNumberService = adminPhoneNumberService; _adminUsersService = adminUsersService; _systemAddressService = systemAddressService; _systemPhoneNumberService = systemPhoneNumberService; _systemWebsiteService = systemWebsiteService; _systemPointOfContactService = systemPointOfContactService; _systemLookupItemService = systemLookupItemService; _systemUserService = systemUserService; _customersManager = customersManager; _configuration = configuration; _webHostEnvironment = webHostEnvironment; }
public void SetUp() { _unitOfWork = new Mock <IUnitOfWork>(); _customersManager = new CustomersManager(_unitOfWork.Object); }
public TransportOffersController(ITransportOrdersManager manager, ICustomersManager customerManager, IUniqueNumberProvider numberProvider) { this.manager = manager; this.customerManager = customerManager; this.numberProvider = numberProvider; }
// RentalFileService rentalService; // Commented out on Part III // Commented out on Part II // List<Rental> rentals; // Constructor replaced on Part III //public RentalsManager(CustomersManager customersManager, CarsManager carsManager) { // this.customersManager = customersManager; // this.carsManager = carsManager; // // Commented out on Part II // // this.rentals = new List<Rental>(); // // Added in Part II // this.rentalService = new RentalFileService(); //} // Added on Part III public RentalsManager(ICustomersManager customersManager, ICarsManager carsManager, IRentalService rentalService) { this.customersManager = customersManager; this.carsManager = carsManager; this.rentalService = rentalService; }
public CustomersController(ICustomersManager customersManager, UserManager<AppUser> userManager, IApplicationEnvironment hostingEnvironment) { _customersManager = customersManager; _userManager = userManager; _hostingEnvironment = hostingEnvironment; }
public CustomerController(ICustomersManager customersManager) { _customersManager = customersManager; }
public CartController(IShopingCartManager cartManager, IProductManager productManager, ICustomersManager customerManager) { cartRepository = cartManager; productRepository = productManager; customerRpository = customerManager; }
/// <summary> /// Initializes a new instance of the <see cref="CustomersController" /> class. /// </summary> /// <param name="customersManager">The customers manager.</param> public CustomersController(ICustomersManager customersManager) { this.CustomersManager = customersManager; }
public CustomersController(ILogger <CustomersController> logger, ICustomersManager customersManager) { _logger = logger; _customersManager = customersManager; }
public CustomersController(ICustomersManager customersManager, ICitiesManager citiesManager) { this.customersManager = customersManager; this.citiesManager = citiesManager; }
public CustomersController(ICustomersManager customersManager, IHttpContextAccessor httpContextAccessor) { this._customersManager = customersManager; this._httpContextAccessor = httpContextAccessor; }
public CustomerController(ICustomersManager manager) { _manager = manager; }
public CustomersController(ICustomersManager repository) { manager = repository; }