public LocalAndEnglandChartDataWithDeprivation GetEmptyData()
 {
     var baseData = LocalAndEnglandChartDataTest.GetLocalAndEnglandChartData();
     var data = new LocalAndEnglandChartDataWithDeprivation(baseData);
     data.LocalLeastDeprived = new List<double>();
     data.LocalMostDeprived = new List<double>();
     data.Local = new List<double>();
     data.England = new List<double>();
     return data;
 }
        public void TestCalculateLimitsGeneratesRoundedLimits()
        {
            var baseData = LocalAndEnglandChartDataTest.GetLocalAndEnglandChartData();
            var data = new LocalAndEnglandChartDataWithDeprivation(baseData);
            Assert.IsNull(data.YAxis);
            data.LocalLeastDeprived = new List<double> { 1.1, 7.1 };
            data.LocalMostDeprived = new List<double> { 0.1, 1.2 };
            data.CalculateLimitsAndStep(0,10);
            var limits = data.YAxis;

            // Assert
            Assert.IsNotNull(limits);
            Assert.AreEqual(0, limits.Min);
            Assert.AreEqual(10, limits.Max);
            Assert.IsNotNull(limits.Step);
        }
        private LocalAndEnglandChartDataWithDeprivation GetLocalAndEnglandChartDataWithDeprivation(GroupRoot groupRoot)
        {
            var grouping = groupRoot.FirstGrouping;

            var chartData = new LocalAndEnglandChartDataWithDeprivation(
                GetLocalAndEnglandChartData(groupRoot));

            chartData.LocalLeastDeprived = GetDeprivationQuintileValues(grouping,
                CategoryIds.LeastDeprivedQuintile);
            chartData.LocalMostDeprived = GetDeprivationQuintileValues(grouping,
                CategoryIds.MostDeprivedQuintile);

            return chartData;
        }