public HealthProfilesSupportingInformation Build() { var supportingInformation = new HealthProfilesSupportingInformation { HealthProfilesData = data, HealthProfilesContent = content }; // Init areas Area area = areasReader.GetAreaFromCode(areaCode); coreDataSetProvider = new CoreDataSetProviderFactory().New(area); Area benchmarkArea = areasReader.GetAreaFromCode(benchmarkAreaCode); benchmarkDataProvider = new CoreDataSetProviderFactory().New(benchmarkArea); // Init data var areaTypeId = HealthProfilesAreaTypeHelper.GetCompositeAreaTypeId(area); InitSupportingGroupData(areaTypeId); InitMainGroupData(areaTypeId); // Page 1 AssignPopulation(); content.AreaType = AreaTypeLabel.GetLabelFromAreaCode(areaCode); AssignKeyMessages(area); // Page 2 top AssignDeprivationQuintilesPopulation(); AssignLsoaQuintiles(); // Page 2 bottom AssignLifeExpectancy(); AssignLifeExpectancyByDeciles(); // Page 3 top AssignEarlyDeathFromAllCauses(); AssignEarlyDeathCvd(); AssignEarlyDeathCancer(); // Page 3 bottom AssignHealthInequalitiesEthnicity(); return supportingInformation; }
public static void ClassInitialize(TestContext testContext) { _supportingInformation = new HealthProfilesSupportingInformationBuilder( AreaCodes.CountyUa_Manchester).Build(); }