public ApprenticeshipVacancyReportControllerTests() { fakeReportRepository = A.Fake <IJobProfileReportRepository>(ops => ops.Strict()); fakeLoggingService = A.Fake <IApplicationLogger>(ops => ops.Strict()); fakeWebAppContext = A.Fake <IWebAppContext>(); fakeCachingPolicy = A.Fake <ICachingPolicy>(); fakeList = Enumerable.Empty <JobProfileApprenticeshipVacancyReport>().AsQueryable(); }
public BinaryDataResult(byte[] data, ICachingPolicy cachingPolicy) { Contract.Requires(data != null); Contract.Requires(cachingPolicy != null); this.data = data; this.cachingPolicy = cachingPolicy; }
private CachingRule(Regex patternRegex, ICachingPolicy cachingPolicy) { Contract.Requires(patternRegex != null); Contract.Requires(cachingPolicy != null); this.patternRegex = patternRegex; this.cachingPolicy = cachingPolicy; }
public FileResult(string fileName, ICachingPolicy cachingPolicy) { Contract.Requires(fileName != null); Contract.Requires(cachingPolicy != null); this.fileName = fileName; this.cachingPolicy = cachingPolicy; }
public ApprenticeshipVacancyReportController( IApplicationLogger loggingService, IJobProfileReportRepository reportRepository, IWebAppContext webAppContext, ICachingPolicy cachingPolicy) : base(loggingService) { this.reportRepository = reportRepository; this.webAppContext = webAppContext; this.cachingPolicy = cachingPolicy; }