Exemple #1
0
 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();
 }
Exemple #2
0
        public BinaryDataResult(byte[] data, ICachingPolicy cachingPolicy)
        {
            Contract.Requires(data != null);
            Contract.Requires(cachingPolicy != null);

            this.data          = data;
            this.cachingPolicy = cachingPolicy;
        }
Exemple #3
0
            private CachingRule(Regex patternRegex, ICachingPolicy cachingPolicy)
            {
                Contract.Requires(patternRegex != null);
                Contract.Requires(cachingPolicy != null);

                this.patternRegex  = patternRegex;
                this.cachingPolicy = cachingPolicy;
            }
Exemple #4
0
        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;
 }