public CarsController(ICarDataProvider carDataProvider, ICartDataProvider cartDataProvider, IAirportDataProvider airportDataProvider, ICartCookieProvider cartCookieProvider)
 {
     _carDataProvider     = carDataProvider;
     _cartDataProvider    = cartDataProvider;
     _airportDataProvider = airportDataProvider;
     _cartCookieProvider  = cartCookieProvider;
 }
Пример #2
0
 public FlightsController(IFlightDataProvider flightDataProvider, ICartDataProvider cartDataProvider, IAirportDataProvider airportDataProvider, ICartCookieProvider cartCookieProvider)
 {
     _flightDataProvider  = flightDataProvider;
     _cartDataProvider    = cartDataProvider;
     _airportDataProvider = airportDataProvider;
     _cartCookieProvider  = cartCookieProvider;
 }
 public HotelsController(IHotelDataProvider hotelDataProvider, ICartDataProvider cartDataProvider, IAirportDataProvider airportDataProvider, ICartCookieProvider cartCookieProvider)
 {
     _hotelDataProvider   = hotelDataProvider;
     _cartDataProvider    = cartDataProvider;
     _airportDataProvider = airportDataProvider;
     _cartCookieProvider  = cartCookieProvider;
 }
Пример #4
0
 public CartController(ICartDataProvider cartDataProvider, ICartCookieProvider cartCookieProvider, IItineraryController itineraryController, IPurchaseService purchaseService, CartDisplayProvider cartDisplayProvider)
 {
     _cartDataProvider    = cartDataProvider;
     _cartCookieProvider  = cartCookieProvider;
     _itineraryController = itineraryController;
     _purchaseService     = purchaseService;
     _cartDisplayProvider = cartDisplayProvider;
 }
Пример #5
0
        public CartViewModel(ICartDataProvider _dataProvider,
                             IEventAggregator eventAggregator)
        {
            InitializeCollections();


            this._dataProvider = _dataProvider;
            _eventAggregator   = eventAggregator;
            _eventAggregator.GetEvent <ProductAddedToCartEvent>().Subscribe(OnItemAdded);
            _eventAggregator.GetEvent <ClearCartAndCatalogEvent>().Subscribe(OnClearCart);
            RemoveItemFromCart = new DelegateCommand(OnRemoveExecute, OnRemoveCanExecute);
            ClearCart          = new DelegateCommand(OnClearExecute, OnClearCanExecute);
        }
 public ItineraryPurchaseServiceClient(IHttpClientFactory httpClientFactory, ILogger <ItineraryDataServiceClient> logger, ICartDataProvider cartDataProvider)
 {
     _logger           = logger;
     _httpClient       = httpClientFactory.CreateClient("ItineraryService");
     _cartDataProvider = cartDataProvider;
 }
Пример #7
0
 public FulfillmentService(ICartDataProvider cartDataProvider, IItineraryDataProvider itineraryDataProvider)
 {
     _cartDataProvider      = cartDataProvider;
     _itineraryDataProvider = itineraryDataProvider;
 }
Пример #8
0
 public CartController(ICartDataProvider cartDataProvider, IProductDataProvider productDataProvider, UserManager <User> userManager)
 {
     _cartDataProvider    = cartDataProvider;
     _productDataProvider = productDataProvider;
     this.userManager     = userManager;
 }
Пример #9
0
 public CartRepository(ICartDataProvider cartDataProvider) => _cartDataProvider = cartDataProvider;