public void TestGetPartitionTrendData()
        {
            var indicatorId = IndicatorIds.MortalityRateFromCausesConsideredPreventable;

            var trendData = new PartitionDataForAllSexesBuilder().GetPartitionTrendData(ProfileIds.Phof,
                AreaCodes.England, indicatorId, AgeIds.AllAges, AreaTypeIds.CountyAndUnitaryAuthority);

            Assert.IsNotNull(trendData.Limits);
            Assert.IsTrue(trendData.Labels.Select(x=>x.Name).Contains("Male"));
            Assert.IsTrue(trendData.Periods.Count > 0);
            Assert.IsTrue(trendData.TrendData[SexIds.Male].Count > 0, "Expected trend data");
        }
 private static PartitionDataForAllSexes GetPartitionData(int indicatorId)
 {
     var response = new PartitionDataForAllSexesBuilder().GetPartitionData(ProfileIds.Phof,
         AreaCodes.England, indicatorId, AgeIds.AllAges, AreaTypeIds.CountyAndUnitaryAuthority);
     return response;
 }