public GetQuotationMethod() { _settings = new CambioTodaySettings() { Key = "dummy_api_key", }; _mapperMock = new Mock <IMapper>(); _clientFactoryMock = new Mock <IHttpClientFactory>(); _clientWrapperMock = new Mock <IHttpClientWrapper>(); _optionsSettingsMock = new Mock <IOptions <CambioTodaySettings> >(); _optionsSettingsMock .Setup(x => x.Value) .Returns(_settings); _cambioTodayService = new CambioTodayService(_clientFactoryMock.Object, _clientWrapperMock.Object, _optionsSettingsMock.Object, _mapperMock.Object); }
public QuotationController(ICambioTodayService cambioTodayService) { _cambioTodayService = cambioTodayService; }