public void TestThat_NumberOfUsersWhoHaveCastXVotes_UsesTheDataObtainedFromTheDataProvider_ToCreateTheChartData()
        {
            var voteCounts = new[] {new NumberOfUsersWithVotesModel()};
            var dataProvider = new DataProviderBuilder().WithNumberOfVotesCastCounts(voteCounts).Build();
            var chartDataConverter = new ChartDataConverterBuilder().Build();
            var controller = new VotingControllerBuilder().WithDataProvider(dataProvider)
                                    .WithChartDataConverter(chartDataConverter)
                                    .Build();

            controller.NumberOfUsersWhoHaveCastXVotes();

            chartDataConverter.Received().ToChartData(voteCounts);
        }
        public void TestThat_NumberOfUsersWhoHaveCastXVotes_PassesTheCorrectChartDataToTheView()
        {
            long[][] chartData = new long[2][];
            var chartDataConverter = new ChartDataConverterBuilder().WithChartDataPerUser(chartData).Build();
            var controller = new VotingControllerBuilder().WithChartDataConverter(chartDataConverter).Build();

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

            CollectionAssert.AreEquivalent(chartData, model);
        }