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);
            }
Ejemplo 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());
            }
Ejemplo n.º 3
0
 protected override void BecauseOf()
 {
     result = Sut.GetReportByDateAndType(testDate, testReportType);
 }