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();
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JobProfileApprenticeshipsController" /> class.
 /// </summary>
 /// <param name="jobProfileRepository">The repository.</param>
 /// <param name="webAppContext">The web application context.</param>
 /// <param name="jobProfileSocCodeRepository">The job profile soc code repository.</param>
 /// <param name="applicationLogger">The application logger.</param>
 /// <param name="sitefinityPage">Sitefinity page</param>
 public JobProfileApprenticeshipsController(IJobProfileRepository jobProfileRepository, IWebAppContext webAppContext, IJobProfileSocCodeRepository jobProfileSocCodeRepository, IApplicationLogger applicationLogger, ISitefinityPage sitefinityPage)
     : base(webAppContext, jobProfileRepository, applicationLogger, sitefinityPage)
 {
     this.jobProfileSocCodeRepository = jobProfileSocCodeRepository;
 }