//Resolve dependencies and set initial statistic values public GovHomeModel(IConfiguration config, ICaseService caseService, IContactService contactService, ITracerService tracerService, ITesterService testerService, ITracingCentreService tracingCentreService, ITestingCentreService testingCentreService) { _config = config; _caseService = caseService; _contactService = contactService; _tracerService = tracerService; _testerService = testerService; _tracingCentreService = tracingCentreService; _testingCentreService = testingCentreService; SetStats(); }
// Set up dependencies and get the relevant statistics to display public TracingCentreSummaryModel(ITracingCentreService tracingCentreService) { _tracingCentreService = tracingCentreService; AllTracingCentreStats = _tracingCentreService.GetAllTracingCentreStats(); }