Exemple #1
0
 public CertificateOfInsuranceApplicationService(ILogManager logManager,
                                                 ICertificateOfInsuranceRepository certificateOfInsuranceRepository,
                                                 ICertificateOfInsuranceValidator certificateOfInsuranceValidator,
                                                 IFileUploadApplicationService fileUploadApplicationService)
 {
     _logManager = logManager;
     _certificateOfInsuranceRepository = certificateOfInsuranceRepository;
     _certificateOfInsuranceValidator  = certificateOfInsuranceValidator;
     _fileUploadApplicationService     = fileUploadApplicationService;
 }
 public SalesApplicationService(
     ILogManager logManager,
     ISalesRepository salesRepository,
     ISalesValidator salesValidator,
     IFileUploadApplicationService fileUploadApplicationService)
 {
     _logManager      = logManager;
     _salesRepository = salesRepository;
     _salesValidator  = salesValidator;
     _fileUploadApplicationService = fileUploadApplicationService;
 }
        public GenerateWelcomeLetterStep(ILogManager logManager,
                                         IAuditApplicationService auditApplicationService,
                                         IDocumentApplicationService documentApplicationService,
                                         IFileUploadApplicationService auditUploadApplicationService,
                                         IAuditConfiguration auditConfiguration,
                                         IWelcomeLetterGl wecomeLetterGl,
                                         IWelcomeLetterWc welcomeLetterWc)
        {
            _logManager = logManager;
            _auditApplicationService       = auditApplicationService;
            _auditUploadApplicationService = auditUploadApplicationService;
            _documentApplicationService    = documentApplicationService;
            _auditConfiguration            = auditConfiguration;
            _welcomeLetterGl = wecomeLetterGl;
            _welcomeLetterWc = welcomeLetterWc;

            _letterGenerators = new Dictionary <AuditTypeEnum, Func <IToken, IToken> >
            {
                { AuditTypeEnum.NotSet, NoOpGenerator },
                { AuditTypeEnum.Combo, GenerateGlWelcomeletter },
                { AuditTypeEnum.GL, GenerateGlWelcomeletter },
                { AuditTypeEnum.WC, GenerateWcWelcomeLetter }
            };
        }