public CcgCoreDataSetProvider(Area area, CcgPopulationProvider ccgPopulationProvider, CoreDataSetListProvider coreDataSetListProvider, IGroupDataReader groupDataReader) : base(area) { this.ccgPopulationProvider = ccgPopulationProvider; this.coreDataSetListProvider = coreDataSetListProvider; this.groupDataReader = groupDataReader; }
public void TestCcgPopulationsAreCached() { var mock = MockPholioReader(); var provider = new CcgPopulationProvider(mock.Object); var population = provider.GetPopulation(ccgAreaCode); population = provider.GetPopulation(ccgAreaCode); mock.Verify(x => x.GetCcgPracticePopulations(ccgAreaCode), Times.Once()); }