public void CheckConvertEURtoUSD() { var mockLogger = new Mock <ILogger <RateService> >(); var mockUnitOfWork = new Mock <IUnitOfWork>(); IRateService serviceRate = new RateService(mockLogger.Object, mockUnitOfWork.Object); List <Rate> rates = JsonConvert.DeserializeObject <List <Rate> >(_rateString); decimal amount = 10.5m; decimal result = 7.62m; Assert.Equal(serviceRate.Convert(rates, "EUR", "USD", amount), result); }