public async Task TwoCurrencyCodeParam_Returns_ReturnsReply() { //arrange var currencyProfile = new CurrencyProfile { Rates = new Dictionary <string, decimal> { { "GBP", (decimal)1 } } }; _currencyProfileMock.Setup(currencyProfileService => currencyProfileService.CurrencyProfile("GBP")) .ReturnsAsync(currencyProfile); var rateService = new RateService(_currencyProfileMock.Object); //act var rateReturn = await rateService.Rate("GBP", "GBP"); //assert Assert.IsInstanceOf <decimal>(rateReturn); }