public void TestThat_VotesPerDay_PassesTheCorrectChartDataToTheView()
        {
            long[][] chartData          = new long[2][];
            var      chartDataConverter = new ChartDataConverterBuilder().WithChartDataPerDay(chartData).Build();
            var      controller         = new VotingControllerBuilder().WithChartDataConverter(chartDataConverter).Build();

            var model = controller.VotesPerDay().GetViewModel <long[][]>();

            CollectionAssert.AreEquivalent(chartData, model);
        }
        public void TestThat_VotesPerDay_UsesTheDataObtainedFromTheDataProvider_ToCreateTheChartData()
        {
            var votes              = new[] { new DayOfWeekVoteModel() };
            var dataProvider       = new DataProviderBuilder().WithVotesPerDay(votes).Build();
            var chartDataConverter = new ChartDataConverterBuilder().Build();
            var controller         = new VotingControllerBuilder()
                                     .WithDataProvider(dataProvider)
                                     .WithChartDataConverter(chartDataConverter)
                                     .Build();

            controller.VotesPerDay();

            chartDataConverter.Received().ToChartData(votes);
        }