public static IReportService ToReturnInvalidReport(this Mock<IReportService> mockedService, int reportId, string reportName)
 {
     var report = new Report().AddFileName(reportName).SetContentType("").SetFilePath(@"c:\someFolder\");
     report.IsValid = false;
     mockedService.Setup(m => m.GetReportById(reportId, 3)).Returns(report);
     return mockedService.Object;
 }
        public override void When()
        {
            base.When();

            TheReportService = ReportViewerSpecifications
                .InitializeReportService(TheDatabase, TheFilePath);

            TheReport = TheReportService.GetReportById(TheReportId, 3);
        }
 public static IReportService ToReturnValidReport(this Mock<IReportService> mockedService, int reportId, string reportName, int groupId)
 {
     report = new Report().AddFileName(reportName).SetContentType("application/vnd.ms-excel").SetFilePath(@"c:\someFolder\");
     report.IsValid = true;
     mockedService.Setup(m => m.GetReportById(reportId, groupId)).Returns(report);
     return mockedService.Object;
 }