public ObtenerConversionHandler(ILogger <ObtenerConversionHandler> logger, IMonedasApiService service, ICsvLoggingService loggingService, IMapper mapper)
 {
     this.logger         = logger;
     this.service        = service;
     this.loggingService = loggingService;
     this.mapper         = mapper;
 }
        public void SetUp()
        {
            service = ServiceBuilder <MercadoLibreOptions> .GetService <MonedasApiService>();

            loggingService = new CsvLoggingService(new OptionsMock <CsvLoggingOptions>(OptionsMockBuilder.GetOptions <CsvLoggingOptions>()));
            Handler        = new ObtenerConversionHandler(Logger, service, loggingService, Mapper);
        }
예제 #3
0
        public void SetUp()
        {
            monedasApiService = ServiceBuilder <MercadoLibreOptions> .GetService <MonedasApiService>();

            loggingService           = new CsvLoggingService(new OptionsMock <CsvLoggingOptions>(OptionsMockBuilder.GetOptions <CsvLoggingOptions>()));
            currencyHistoryDbService = ServiceBuilder <ChallengeDbContext, CurrencyHistoryEntity> .GetService <CurrencyHistoryDbService>();

            Handler = new ObtenerMonedasHandler(Logger, monedasApiService, loggingService, currencyHistoryDbService, Mapper);
        }
예제 #4
0
 public ObtenerMonedaHandler(ILogger <ObtenerMonedaHandler> logger,
                             IMonedasApiService monedasApiService,
                             ICsvLoggingService loggingService,
                             ICurrencyHistoryDbService currencyHistoryDbService,
                             IMapper mapper)
 {
     this.logger                   = logger;
     this.monedasApiService        = monedasApiService;
     this.loggingService           = loggingService;
     this.currencyHistoryDbService = currencyHistoryDbService;
     this.mapper                   = mapper;
 }
예제 #5
0
 public void SetUp()
 {
     service = new CsvLoggingService(new OptionsMock <CsvLoggingOptions>(OptionsMockBuilder.GetOptions <CsvLoggingOptions>()));
 }