public CarsController(ICarDataProvider carDataProvider, ICartDataProvider cartDataProvider, IAirportDataProvider airportDataProvider, ICartCookieProvider cartCookieProvider)
 {
     _carDataProvider     = carDataProvider;
     _cartDataProvider    = cartDataProvider;
     _airportDataProvider = airportDataProvider;
     _cartCookieProvider  = cartCookieProvider;
 }
Esempio n. 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;
 }
Esempio n. 4
0
 public CartController(ICartDataProvider cartDataProvider, ICartCookieProvider cartCookieProvider, IItineraryController itineraryController, IPurchaseService purchaseService, CartDisplayProvider cartDisplayProvider)
 {
     _cartDataProvider    = cartDataProvider;
     _cartCookieProvider  = cartCookieProvider;
     _itineraryController = itineraryController;
     _purchaseService     = purchaseService;
     _cartDisplayProvider = cartDisplayProvider;
 }
        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;
 }
Esempio n. 7
0
 public FulfillmentService(ICartDataProvider cartDataProvider, IItineraryDataProvider itineraryDataProvider)
 {
     _cartDataProvider      = cartDataProvider;
     _itineraryDataProvider = itineraryDataProvider;
 }
Esempio n. 8
0
 public CartController(ICartDataProvider cartDataProvider, IProductDataProvider productDataProvider, UserManager <User> userManager)
 {
     _cartDataProvider    = cartDataProvider;
     _productDataProvider = productDataProvider;
     this.userManager     = userManager;
 }
Esempio n. 9
0
 public CartRepository(ICartDataProvider cartDataProvider) => _cartDataProvider = cartDataProvider;