public void ByMonthTest()
        {
            var reporter = new BalanceReporter(m_provider);

              List<PeriodGroup> report = reporter.CreateReport(GroupingPeriod.Month, false);
              Assert.AreEqual(1, report.Count);
              Assert.AreEqual(new DateTime(2000, 12, 01), report[0].IntervalStart);
              Assert.AreEqual(new DateTime(2000, 12, 31), report[0].IntervalEnd);
        }
Exemplo n.º 2
0
        public void ByYearTest()
        {
            var reporter = new BalanceReporter(m_provider);

            List <PeriodGroup> report = reporter.CreateReport(GroupingPeriod.Year, false);

            Assert.AreEqual(1, report.Count);
            Assert.AreEqual(new DateTime(2000, 1, 1), report[0].IntervalStart);
            Assert.AreEqual(new DateTime(2000, 12, 31), report[0].IntervalEnd);
        }
        public void ByDayTest()
        {
            var reporter = new BalanceReporter(m_provider);

              List<PeriodGroup> report = reporter.CreateReport(GroupingPeriod.Day, false);
              Assert.AreEqual(9, report.Count);
              Assert.AreEqual(new DateTime(2000, 12, 08), report[0].IntervalStart);
              Assert.AreEqual(new DateTime(2000, 12, 08), report[0].IntervalEnd);
              Assert.AreEqual(1, report[0].Added);
              Assert.AreEqual(0, report[0].Removed);
              Assert.AreEqual(0, report[0].Postponed);
              Assert.AreEqual(0, report[0].Reactivated);
        }
Exemplo n.º 4
0
        public void ByDayTest()
        {
            var reporter = new BalanceReporter(m_provider);

            List <PeriodGroup> report = reporter.CreateReport(GroupingPeriod.Day, false);

            Assert.AreEqual(9, report.Count);
            Assert.AreEqual(new DateTime(2000, 12, 08), report[0].IntervalStart);
            Assert.AreEqual(new DateTime(2000, 12, 08), report[0].IntervalEnd);
            Assert.AreEqual(1, report[0].Added);
            Assert.AreEqual(0, report[0].Removed);
            Assert.AreEqual(0, report[0].Postponed);
            Assert.AreEqual(0, report[0].Reactivated);
        }
        public void ByQuaterTest()
        {
            var reporter = new BalanceReporter(m_provider);

              // 01 Jan -
              // 02 Feb  1
              // 03 Mar -
              // 04 Apr -
              // 05 May  2
              // 06 Jun -
              // 07 Jul -
              // 08 Aug  3
              // 09 Sep -
              // 10 Nov -
              // 11 Oct  4
              // 12 Dec -

              List<PeriodGroup> report = reporter.CreateReport(GroupingPeriod.Quater, false);
              Assert.AreEqual(1, report.Count);
              Assert.AreEqual(new DateTime(2000, 10, 1), report[0].IntervalStart);
              Assert.AreEqual(new DateTime(2000, 12, 31), report[0].IntervalEnd);
        }
Exemplo n.º 6
0
        public void ByQuaterTest()
        {
            var reporter = new BalanceReporter(m_provider);

            // 01 Jan -
            // 02 Feb  1
            // 03 Mar -
            // 04 Apr -
            // 05 May  2
            // 06 Jun -
            // 07 Jul -
            // 08 Aug  3
            // 09 Sep -
            // 10 Nov -
            // 11 Oct  4
            // 12 Dec -

            List <PeriodGroup> report = reporter.CreateReport(GroupingPeriod.Quater, false);

            Assert.AreEqual(1, report.Count);
            Assert.AreEqual(new DateTime(2000, 10, 1), report[0].IntervalStart);
            Assert.AreEqual(new DateTime(2000, 12, 31), report[0].IntervalEnd);
        }