public void TestGetAreaDetails_DiabetesPrevalenceAndRiskForEngland()
        {
            var areaCode = AreaCodes.Ccg_Barnet;

            var areaDetails = new LongerLivesAreaDetailsBuilder()
                .GetAreaDetails(ProfileIds.Diabetes, GroupIds.Diabetes_PrevalenceAndRisk, AreaTypeIds.Ccg, areaCode);

            var significances = areaDetails.Significances[AreaCodes.England];
            foreach (var significance in significances)
            {
                Assert.AreNotEqual((int)Significance.None, significance, "Significance should not be none");
            }
        }
        public void TestGetAreaDetails_DiabetesPrevalenceAndRiskForEnglandDecile()
        {
            var areaDetails = new LongerLivesAreaDetailsBuilder()
                .GetAreaDetails(ProfileIds.Diabetes, GroupIds.Diabetes_TreatmentTargets,
                AreaTypeIds.CountyAndUnitaryAuthority, "cat-2-9");

            Assert.IsNotNull(areaDetails);
        }
        private static void AssertHypertensionDomain(int groupId)
        {
            var areaCode = AreaCodes.England;
            var areaDetails = new LongerLivesAreaDetailsBuilder()
                .GetAreaDetails(ProfileIds.HyperTension, groupId,
                    AreaTypeIds.Ccg, areaCode);

            Assert.AreEqual(areaCode, areaDetails.Area.Code);
        }
 private static LongerLivesAreaDetails LongerLivesAreaDetails(string areaCode, int areaTypeId)
 {
     var areaDetails = new LongerLivesAreaDetailsBuilder()
         .GetAreaDetails(ProfileIds.LongerLives, GroupIds.LongerLives, areaTypeId, areaCode);
     return areaDetails;
 }
        public void TestGetAreaDetails_ExceptionThrownForGpPractice()
        {
            var areaCode = AreaCodes.Gp_Addingham;

            var areaDetails = new LongerLivesAreaDetailsBuilder()
                .GetAreaDetails(ProfileIds.LongerLivesDiabetesSupportingIndicators, GroupIds.DiabetesSupportingIndicators_ValuesAtTopOfPage, AreaTypeIds.GpPractice, areaCode);
        }