public void AllUsersStatisticTestEmptyPayments()
        {
            DateTime startDate = new DateTime(2012, 11, 11);
            DateTime endDate = new DateTime(2016, 11, 11);
            int idUser3 = 3;

            ReportsService reports = new ReportsService();
            var usersStatistic = reports.GetAllUsersPaymentStatistic(startDate, endDate);

            var userStatistic = usersStatistic.FirstOrDefault(t => t.Id == idUser3);
            Assert.IsNull(userStatistic);
        }
        public void AllUsersStatisticTestLimitValuesAll()
        {
            DateTime startDate = new DateTime(2012, 11, 11);
            DateTime endDate = new DateTime(2016, 11, 11);
            int idUser1 = 1;
            int idUser2 = 2;

            ReportsService reports = new ReportsService();
            var usersStatistic = reports.GetAllUsersPaymentStatistic(startDate, endDate);

            decimal user1pays = usersStatistic
                .FirstOrDefault(t => t.Id == idUser1)
                .Payments
                .Sum(t => t.PaySize);

            Assert.AreEqual(3000, user1pays);

            decimal user2pays = usersStatistic
                .FirstOrDefault(t => t.Id == idUser2)
                .Payments
                .Sum(t => t.PaySize);

            Assert.AreEqual(5000, user2pays);
        }