private long[][] WorkOutCumulativeVotes(IEnumerable<DateTimeVoteModel> votesPerDay)
        {
            int totalVotes = 0;
            var cumulativeVotesPerDay = new List<DateTimeVoteModel>();

            foreach (var dateTimeVoteModel in votesPerDay)
            {
                totalVotes += dateTimeVoteModel.VoteCount;
                var model = new DateTimeVoteModel { Date = dateTimeVoteModel.Date, VoteCount = totalVotes };
                cumulativeVotesPerDay.Add(model);
            }

            var cumulativeVotesPerDayData = chartDataConverter.ToChartData(cumulativeVotesPerDay, v => v.Date.GetJavascriptTimestamp());
            return cumulativeVotesPerDayData;
        }
 public DataProviderBuilder WithVotesPerHour(DateTimeVoteModel[] votes)
 {
     dataProvider.GetVotesPerHour().Returns(votes);
     return this;
 }