Exemple #1
0
 public SkillsFrameworkDataImportControllerTests()
 {
     fakeImportSkillsFrameworkDataService = A.Fake <IImportSkillsFrameworkDataService>(ops => ops.Strict());
     fakeReportAuditRepository            = A.Fake <IReportAuditRepository>(ops => ops.Strict());
     fakeWebAppContext     = A.Fake <IWebAppContext>(ops => ops.Strict());
     fakeApplicationLogger = A.Fake <IApplicationLogger>(ops => ops.Strict());
     SetupCalls();
 }
 public SkillsFrameworkDataImportService(ISkillsFrameworkService skillsFrameworkService, IFrameworkSkillRepository frameworkSkillRepository, IJobProfileSocCodeRepository jobProfileSocCodeRepository, IJobProfileRepository jobProfileRepository, ISocSkillMatrixRepository socSkillMatrixRepository, IReportAuditRepository reportAuditRepository)
 {
     this.skillsFrameworkService      = skillsFrameworkService;
     this.frameworkSkillRepository    = frameworkSkillRepository;
     this.jobProfileSocCodeRepository = jobProfileSocCodeRepository;
     this.jobProfileRepository        = jobProfileRepository;
     this.reportAuditRepository       = reportAuditRepository;
     this.socSkillMatrixRepository    = socSkillMatrixRepository;
 }
        public SkillsFrameworkDataImportServiceTests()
        {
            fakeSkillsFrameworkService      = A.Fake <ISkillsFrameworkService>(ops => ops.Strict());
            fakeFrameworkSkillRepository    = A.Fake <IFrameworkSkillRepository>(ops => ops.Strict());
            fakeSocSkillMatrixRepository    = A.Fake <ISocSkillMatrixRepository>(ops => ops.Strict());
            fakeJobProfileSocCodeRepository = A.Fake <IJobProfileSocCodeRepository>(ops => ops.Strict());
            fakeReportAuditRepository       = A.Fake <IReportAuditRepository>(ops => ops.Strict());
            fakeJobProfileRepository        = A.Fake <IJobProfileRepository>(ops => ops.Strict());

            A.CallTo(() => fakeReportAuditRepository.CreateAudit("SummaryDetails", A <string> ._)).DoesNothing();
            A.CallTo(() => fakeReportAuditRepository.CreateAudit("ActionDetails", A <string> ._)).DoesNothing();
            A.CallTo(() => fakeReportAuditRepository.CreateAudit("ErrorDetails", A <string> ._)).DoesNothing();
        }
Exemple #4
0
 public SkillsFrameworkDataImportController(IApplicationLogger applicationLogger, IImportSkillsFrameworkDataService importSkillsFrameworkDataService, IReportAuditRepository reportAuditRepository, IWebAppContext webAppContext) : base(applicationLogger)
 {
     this.importSkillsFrameworkDataService = importSkillsFrameworkDataService;
     this.reportAuditRepository            = reportAuditRepository;
     this.webAppContext = webAppContext;
 }