protected override void Context()
            {
                base.Context();

                expectedContent = new Report {ReportId = 42L};

                TestBaseQuery.Execute(TestSession)
                    .Returns(new List<Report> {expectedContent}.AsQueryable());

                testDate = new DateTime(2012, 02, 03);
            }
Esempio n. 2
0
            protected override void Context()
            {
                base.Context();

                testDate = new DateTime(2012, 01, 02);
                testReportType = ReportType.Cost;

                expectedReport = new Report
                                     {
                                         ReportId = 42L,
                                     };
                TestQuery.Execute(TestSession)
                    .Returns(new List<Report> { expectedReport }.AsQueryable());
            }
Esempio n. 3
0
 protected override void BecauseOf()
 {
     result = Sut.GetReportByDateAndType(testDate, testReportType);
 }