public ReportServiceDesktopTask(ILifetimeScope lifeTimeScope, IReportServiceContextFactory <IDesktopContext> reportServiceContextFactory) { _lifeTimeScope = lifeTimeScope; _reportServiceContextFactory = reportServiceContextFactory; }
private ReportServiceDesktopTask NewTask(ILifetimeScope lifetimeScope = null, IReportServiceContextFactory <IDesktopContext> reportServiceContextFactory = null) { return(new ReportServiceDesktopTask(lifetimeScope ?? Mock.Of <ILifetimeScope>(), reportServiceContextFactory ?? new Mock <IReportServiceContextFactory <IDesktopContext> >().Object)); }