public async Task CurrencyCodeParamSubmitted_UrlRequested_ReturnsResponseString() { //arrange var currencyProfileRequestUrlServiceMock = new Mock <ICurrencyProfileRequestUrlService>(); CurrencyProfileHttpRequestService currencyProfileHttpRequestService = new CurrencyProfileHttpRequestService(_httpClient, currencyProfileRequestUrlServiceMock.Object, _loggerMock.Object); //act var currencyProfileResponse = await currencyProfileHttpRequestService.CurrencyProfileResponse("USD"); //assert Assert.AreEqual(currencyProfileResponse, _httpResponse); }
public async Task CurrencyCodeParamSubmitted_UrlRequested_ReturnsString() { //arrange var currencyProfileRequestUrlServiceMock = new Mock <ICurrencyProfileRequestUrlService>(); CurrencyProfileHttpRequestService currencyProfileHttpRequestService = new CurrencyProfileHttpRequestService(_httpClient, currencyProfileRequestUrlServiceMock.Object, _loggerMock.Object); //act var urlResult = await currencyProfileHttpRequestService.CurrencyProfileResponse("USD"); //assert Assert.IsInstanceOf <string>(urlResult); }