public async Task <int> GetRatesTest(string JSON) { herokuAppCliente.Setup(setUp => setUp.GetStringRates()).ReturnsAsync(JSON); RateService <RateModel> service = new RateService <RateModel>(herokuAppCliente.Object); IEnumerable <RateModel> result = await service.TryGetRates(); return(result.Count()); }