Esempio n. 1
0
        public RatesRepository(IJsonFileRetrievalService jsonFileRetrievalService, IJsonFileParserService jsonFileParserService)
        {
            var ratesJson = jsonFileRetrievalService.GetRatesJson();
            var rates     = jsonFileParserService.GetRatesFromJson(ratesJson);

            RatesDictionary = rates.ToDictionary(r => r.Day, r => r.Rates);
        }
 public RatesRepositoryMockBuilder BuildWith(IJsonFileRetrievalService jsonFileRetrievalService)
 {
     this.JsonFileRetrievalService = jsonFileRetrievalService;
     return(this);
 }