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); }
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); }
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; }
public void SetUp() { service = new CsvLoggingService(new OptionsMock <CsvLoggingOptions>(OptionsMockBuilder.GetOptions <CsvLoggingOptions>())); }