Exemplo n.º 1
0
 public SearchHotelRoomsHandler(IHotelRoomRepository hotelRoom, ICountryService country, ICurrentUserService currentUser, ICurrencyConversionService currencyConversion)
 {
     _hotelRoom          = hotelRoom ?? throw new ArgumentNullException(nameof(hotelRoom));
     _country            = country ?? throw new ArgumentNullException(nameof(country));
     _currentUser        = currentUser ?? throw new ArgumentNullException(nameof(currentUser));
     _currencyConversion = currencyConversion ?? throw new ArgumentNullException(nameof(currencyConversion));
 }
 public GetHotelRoomHandler(IHotelRoomRepository hotelRoom, ICountryService country, ICurrencyConversionService currencyConversion, ICurrentUserService currentUser, IDateTime date)
 {
     _hotelRoom          = hotelRoom ?? throw new ArgumentNullException(nameof(hotelRoom));
     _country            = country ?? throw new ArgumentNullException(nameof(country));
     _currencyConversion = currencyConversion ?? throw new ArgumentNullException(nameof(currencyConversion));
     _currentUser        = currentUser ?? throw new ArgumentNullException(nameof(currentUser));
     _date = date ?? throw new ArgumentNullException(nameof(date));
 }
Exemplo n.º 3
0
 public CurrencyConversionController(IDateRange dateRange, IDateChecker dateChecker
                                     , ICurrencyConversionService currencyConversionService, ICurrencyNameChecker currencyNameChecker, ICurrenciesSelectList currenciesSelectList)
 {
     _currencyConversionService = currencyConversionService;
     _dateChecker          = dateChecker;
     _dateRange            = dateRange;
     _currencyNameChecker  = currencyNameChecker;
     _currenciesSelectList = currenciesSelectList;
 }
Exemplo n.º 4
0
 public InvestmentOptionsController(
     ICurrencyConversionService currencyConversionService,
     IInvestmentOptionService investmentOptionService,
     IInvestmentOptionMapper investmentOptionMapper)
 {
     this._currencyConversionService = currencyConversionService;
     this._investmentOptionService   = investmentOptionService;
     this._investmentOptionMapper    = investmentOptionMapper;
 }
Exemplo n.º 5
0
        public ProductControllerTests()
        {
            ProductRepository         = A.Fake <IProductRepository>();
            CurrencyConversionService = A.Fake <ICurrencyConversionService>();
            ProductsController        = new ProductsController(ProductRepository, CurrencyConversionService);

            SetupProductMocks();
            SetupHttpRequestMocks();
            SetupFakes();
        }
 public PaymentProcessor(
     ILogger <PaymentProcessor> logger,
     IPaymentsRepository repository,
     ICurrencyConversionService currencyConversionService,
     IVerificationService verificationService)
 {
     _logger     = logger;
     _repository = repository;
     _currencyConversionService = currencyConversionService;
     _verificationService       = verificationService;
 }
Exemplo n.º 7
0
 public AccountTransferService(
     IAccountsRepository accountsRepository,
     IAccountAcquiringService accountAcquiringService,
     ICurrencyConversionService currencyConversionService,
     IEventBus eventBus)
 {
     _accountsRepository        = accountsRepository;
     _accountAcquiringService   = accountAcquiringService;
     _currencyConversionService = currencyConversionService;
     _eventBus = eventBus;
 }
 public CurrencyConversionController(ICurrencyConversionService currencyConversionService)
 {
     _currencyConversionService = currencyConversionService;
 }
Exemplo n.º 9
0
 public CurrencyConversionsController(ICurrencyConversionService currencyConversionService, IMapper mapper)
 {
     _currencyConversionService = currencyConversionService;
     _mapper = mapper;
 }
Exemplo n.º 10
0
 public ProductsController(IProductRepository productRepository, ICurrencyConversionService currencyConversionService)
 {
     ProductRepository         = productRepository;
     CurrencyConversionService = currencyConversionService;
 }
 public CurrencyConversionHandler(ICurrencyConversionService currencyConversion)
 {
     _currencyConversion = currencyConversion ?? throw new ArgumentNullException(nameof(currencyConversion));
 }
Exemplo n.º 12
0
 public CurrencyService(ICurrencyConversionService currencyConversionService)
 {
     _currencyConversionService = currencyConversionService;
 }
Exemplo n.º 13
0
 public ConvertViewModel(ICurrencyConversionService conversionService, IList <ICurrencyProvider> providers)
 {
     FetchCommand      = new Command(async() => await FetchCurrencies());
     ConversionService = conversionService;
     CurrencyProviders = providers;
 }
Exemplo n.º 14
0
 public CurrencyInfoService(ICurrenciesApiCacheService currenciesApi, ICurrencyConversionService conversion)
 {
     _api        = currenciesApi;
     _conversion = conversion;
 }