예제 #1
0
        public RegistrationService(
            [KeyFilter(Filenames.BadSicLog)] IAuditLogger badSicLog,
            [KeyFilter(Filenames.RegistrationLog)] IAuditLogger registrationLog,
            IRegistrationBusinessLogic registrationBusinessLogic,
            IScopeBusinessLogic scopeBL,
            IOrganisationBusinessLogic orgBL,
            ISharedBusinessLogic sharedBusinessLogic,
            ISearchBusinessLogic searchBusinessLogic,
            IUserRepository userRepository,
            IPinInThePostService pinInThePostService,
            IPostcodeChecker postcodeChecker,
            [KeyFilter("Private")] IPagedRepository <EmployerRecord> privateSectorRepository,
            [KeyFilter("Public")] IPagedRepository <EmployerRecord> publicSectorRepository
            )
        {
            RegistrationBusinessLogic = registrationBusinessLogic;
            BadSicLog       = badSicLog;
            RegistrationLog = registrationLog;

            ScopeBusinessLogic        = scopeBL;
            OrganisationBusinessLogic = orgBL;
            SharedBusinessLogic       = sharedBusinessLogic;
            SearchBusinessLogic       = searchBusinessLogic;
            PrivateSectorRepository   = privateSectorRepository;
            PublicSectorRepository    = publicSectorRepository;
            UserRepository            = userRepository;
            PinInThePostService       = pinInThePostService;
            PostcodeChecker           = postcodeChecker;
        }
예제 #2
0
 public Functions(
     StorageOptions storageOptions,
     IEventLogger customLogger,
     [KeyFilter(Filenames.BadSicLog)] IAuditLogger badSicLog,
     [KeyFilter(Filenames.ManualChangeLog)] IAuditLogger manualChangeLog,
     IMessenger messenger,
     ISharedBusinessLogic sharedBusinessLogic,
     ISearchRepository <EmployerSearchModel> employerSearchRepository,
     ISearchRepository <SicCodeSearchModel> sicCodeSearchRepository,
     ISubmissionBusinessLogic submissionBusinessLogic,
     IOrganisationBusinessLogic organisationBusinessLogic,
     ISearchBusinessLogic searchBusinessLogic,
     IGovNotifyAPI govNotifyApi,
     UpdateFromCompaniesHouseService updateFromCompaniesHouseService,
     IAuthorisationBusinessLogic authorisationBusinessLogic)
 {
     _StorageOptions                  = storageOptions;
     _CustomLogger                    = customLogger;
     _BadSicLog                       = badSicLog;
     _ManualChangeLog                 = manualChangeLog;
     _Messenger                       = messenger;
     _SharedBusinessLogic             = sharedBusinessLogic;
     _EmployerSearchRepository        = employerSearchRepository;
     _SicCodeSearchRepository         = sicCodeSearchRepository;
     _SubmissionBusinessLogic         = submissionBusinessLogic;
     _OrganisationBusinessLogic       = organisationBusinessLogic;
     SearchBusinessLogic              = searchBusinessLogic;
     _updateFromCompaniesHouseService = updateFromCompaniesHouseService;
     _authorisationBusinessLogic      = authorisationBusinessLogic;
     this.govNotifyApi                = govNotifyApi;
 }
 public void BeforeEach()
 {
     mockSharedBusinessLogic = MoqHelpers.CreateFakeSharedBusinessLogic();
     mockDataRepo            = MoqHelpers.CreateMockDataRepository();
     mockScopeBL             = new Mock <IScopeBusinessLogic>();
     mockDraftFileBL         = new Mock <IDraftFileBusinessLogic>();
 }
 public NewAccountController(
     IAccountService accountService,
     ILogger <AccountController> logger, IWebService webService, ISharedBusinessLogic sharedBusinessLogic) : base(
         logger, webService, sharedBusinessLogic)
 {
     _accountService = accountService;
 }
예제 #5
0
 public AdminUnconfirmedPinsController(
     IAdminService adminService,
     ILogger <AdminUnconfirmedPinsController> logger, IWebService webService,
     ISharedBusinessLogic sharedBusinessLogic) : base(logger, webService, sharedBusinessLogic)
 {
     _adminService = adminService;
 }
예제 #6
0
 public DownloadableFileController(
     IDownloadableFileBusinessLogic downloadableFileBusinessLogic,
     ILogger <DownloadableFileController> logger, IWebService webService,
     ISharedBusinessLogic sharedBusinessLogic) : base(logger, webService, sharedBusinessLogic)
 {
     _downloadableFileBusinessLogic = downloadableFileBusinessLogic;
 }
예제 #7
0
 public ChangeEmailController(
     IChangeEmailViewService changeEmailService,
     ILogger <ChangeEmailController> logger, IWebService webService, ISharedBusinessLogic sharedBusinessLogic) :
     base(logger, webService, sharedBusinessLogic)
 {
     ChangeEmailService = changeEmailService;
 }
예제 #8
0
        public AdminService(
            [KeyFilter(Filenames.ManualChangeLog)] IAuditLogger manualChangeLog,
            [KeyFilter(Filenames.BadSicLog)] IAuditLogger badSicLog,
            [KeyFilter(Filenames.RegistrationLog)] IAuditLogger registrationLog,
            IShortCodesRepository shortCodesRepository,
            IOrganisationBusinessLogic organisationBusinessLogic,
            ISearchBusinessLogic searchBusinessLogic,
            ISubmissionBusinessLogic submissionBusinessLogic,
            IUserRepository userRepository,
            [KeyFilter(QueueNames.ExecuteWebJob)] IQueue executeWebjobQueue,
            [KeyFilter("Private")] IPagedRepository <EmployerRecord> privateSectorRepository,
            [KeyFilter("Public")] IPagedRepository <EmployerRecord> publicSectorRepository,
            ISearchRepository <EmployerSearchModel> employerSearchRepository,
            ISearchRepository <SicCodeSearchModel> sicCodeSearchRepository,
            ISharedBusinessLogic sharedBusinessLogic
            )
        {
            ManualChangeLog = manualChangeLog;
            BadSicLog       = badSicLog;
            RegistrationLog = registrationLog;

            ShortCodesRepository      = shortCodesRepository;
            OrganisationBusinessLogic = organisationBusinessLogic;
            SearchBusinessLogic       = searchBusinessLogic;
            SubmissionBusinessLogic   = submissionBusinessLogic;
            UserRepository            = userRepository;
            ExecuteWebjobQueue        = executeWebjobQueue;
            PrivateSectorRepository   = privateSectorRepository;
            PublicSectorRepository    = publicSectorRepository;

            EmployerSearchRepository = employerSearchRepository;
            SicCodeSearchRepository  = sicCodeSearchRepository;
            SharedBusinessLogic      = sharedBusinessLogic;
        }
예제 #9
0
 public CloseAccountController(
     ICloseAccountViewService closeAccountService,
     ILogger <CloseAccountController> logger, IWebService webService, ISharedBusinessLogic sharedBusinessLogic) :
     base(logger, webService, sharedBusinessLogic)
 {
     CloseAccountService = closeAccountService;
 }
 public SubmissionBusinessLogic(
     ISharedBusinessLogic sharedBusinessLogic,
     [KeyFilter(Filenames.SubmissionLog)]
     IAuditLogger submissionLog)
 {
     _sharedBusinessLogic = sharedBusinessLogic;
     SubmissionLog        = submissionLog;
 }
 public AdminUserResendVerificationEmailController(
     IAdminService adminService,
     AuditLogger auditLogger,
     ILogger <AdminUserResendVerificationEmailController> logger, IWebService webService,
     ISharedBusinessLogic sharedBusinessLogic) : base(logger, webService, sharedBusinessLogic)
 {
     _adminService    = adminService;
     this.auditLogger = auditLogger;
 }
예제 #12
0
 public SubmissionController(
     ISubmissionService submissionService,
     ISubmissionPresenter submissionPresenter,
     ILogger <SubmissionController> logger, IWebService webService, ISharedBusinessLogic sharedBusinessLogic) :
     base(logger, webService, sharedBusinessLogic)
 {
     _SubmissionService   = submissionService;
     _SubmissionPresenter = submissionPresenter;
 }
 public ViewingService(ISharedBusinessLogic sharedBusinessLogic,
                       IOrganisationBusinessLogic organisationBusinessLogic, ISearchBusinessLogic searchBusinessLogic,
                       ISubmissionBusinessLogic submissionBusinessLogic)
 {
     SharedBusinessLogic       = sharedBusinessLogic;
     OrganisationBusinessLogic = organisationBusinessLogic;
     SearchBusinessLogic       = searchBusinessLogic;
     SubmissionBusinessLogic   = submissionBusinessLogic;
 }
        public SubmissionPresenter(
            ISubmissionService submissionService,
            SubmissionOptions submissionOptions,
            ISharedBusinessLogic sharedBusinessLogic)

        {
            SubmissionService    = submissionService;
            SubmissionOptions    = submissionOptions;
            _sharedBusinessLogic = sharedBusinessLogic;
        }
 public ScopeController(
     ISubmissionService submissionService,
     IScopePresenter scopeUI,
     ILogger <ScopeController> logger, IWebService webService, ISharedBusinessLogic sharedBusinessLogic) : base(
         logger, webService, sharedBusinessLogic)
 {
     SubmissionService    = submissionService;
     _sharedBusinessLogic = sharedBusinessLogic;
     ScopePresentation    = scopeUI;
 }
예제 #16
0
 public AdminOrganisationNameController(
     IAdminService adminService,
     ICompaniesHouseAPI companiesHouseApi,
     AuditLogger auditLogger,
     ILogger <AdminOrganisationNameController> logger, IWebService webService,
     ISharedBusinessLogic sharedBusinessLogic) : base(logger, webService, sharedBusinessLogic)
 {
     _adminService          = adminService;
     this.companiesHouseApi = companiesHouseApi;
     this.auditLogger       = auditLogger;
 }
예제 #17
0
 public ScopePresenter(IScopeBusinessLogic scopeBL,
                       IDataRepository dataRepo,
                       IOrganisationBusinessLogic organisationBusinessLogic,
                       ISearchBusinessLogic searchBusinessLogic,
                       ISharedBusinessLogic sharedBusinessLogic)
 {
     ScopeBusinessLogic         = scopeBL;
     DataRepository             = dataRepo;
     _organisationBusinessLogic = organisationBusinessLogic;
     _searchBusinessLogic       = searchBusinessLogic;
     _sharedBusinessLogic       = sharedBusinessLogic;
 }
예제 #18
0
 public AdminOrganisationAddressController(
     IAdminService adminService,
     ICompaniesHouseAPI companiesHouseApi,
     IUpdateFromCompaniesHouseService updateFromCompaniesHouseService,
     AuditLogger auditLogger,
     ILogger <AdminOrganisationAddressController> logger, IWebService webService,
     ISharedBusinessLogic sharedBusinessLogic) : base(logger, webService, sharedBusinessLogic)
 {
     _adminService = adminService;
     UpdateFromCompaniesHouseService = updateFromCompaniesHouseService;
     this.auditLogger  = auditLogger;
     CompaniesHouseApi = companiesHouseApi;
 }
 public SubmissionService(
     ISharedBusinessLogic sharedBusinessLogic,
     ISubmissionBusinessLogic submissionBusinessLogic,
     IScopeBusinessLogic scopeBusinessLogic,
     [KeyFilter("Private")] IPagedRepository <EmployerRecord> privateSectorRepository,
     IDraftFileBusinessLogic draftFileBusinessLogic)
 {
     SharedBusinessLogic     = sharedBusinessLogic;
     SubmissionBusinessLogic = submissionBusinessLogic;
     ScopeBusinessLogic      = scopeBusinessLogic;
     DraftFileBusinessLogic  = draftFileBusinessLogic;
     PrivateSectorRepository = privateSectorRepository;
 }
 public CompareController(
     ISearchPresenter searchViewService,
     IComparePresenter compareViewService,
     ICompareBusinessLogic compareBusinessLogic,
     IOrganisationBusinessLogic organisationBusinessLogic,
     ILogger <CompareController> logger, IWebService webService, ISharedBusinessLogic sharedBusinessLogic) : base(
         logger, webService, sharedBusinessLogic)
 {
     CompareBusinessLogic      = compareBusinessLogic;
     OrganisationBusinessLogic = organisationBusinessLogic;
     SearchViewService         = searchViewService;
     CompareViewService        = compareViewService;
 }
 public OrganisationBusinessLogic(
     ISharedBusinessLogic sharedBusinessLogic,
     ISubmissionBusinessLogic submissionLogic,
     IScopeBusinessLogic scopeLogic,
     ISecurityCodeBusinessLogic securityCodeLogic,
     IDnBOrgsRepository dnBOrgsRepository)
 {
     _sharedBusinessLogic = sharedBusinessLogic;
     _submissionLogic     = submissionLogic;
     _scopeLogic          = scopeLogic;
     _securityCodeLogic   = securityCodeLogic;
     DnBOrgsRepository    = dnBOrgsRepository;
 }
 public ViewingController(
     IViewingService viewingService,
     IViewingPresenter viewingPresenter,
     ISearchPresenter searchPresenter,
     IComparePresenter comparePresenter,
     ILogger <ViewingController> logger, IWebService webService, ISharedBusinessLogic sharedBusinessLogic) : base(
         logger, webService, sharedBusinessLogic)
 {
     ViewingService   = viewingService;
     ViewingPresenter = viewingPresenter;
     SearchPresenter  = searchPresenter;
     ComparePresenter = comparePresenter;
 }
예제 #23
0
        public BaseController(
            ILogger logger,
            IWebService webService,
            ISharedBusinessLogic sharedBusinessLogic)
        {
            Logger = logger;
            WebService = webService;
            AutoMapper = webService.AutoMapper;
            Cache = webService.Cache;
            Session = webService.Session;
            WebTracker = webService.WebTracker;

            SharedBusinessLogic = sharedBusinessLogic;
        }
예제 #24
0
 public CloseAccountViewService(
     IUserRepository userRepository,
     IRegistrationBusinessLogic registrationBusinessLogic,
     IOrganisationBusinessLogic organisationBusinessLogic,
     ILogger <CloseAccountViewService> logger,
     ISendEmailService sendEmailService,
     ISharedBusinessLogic sharedBusinessLogic)
 {
     UserRepository            = userRepository ?? throw new ArgumentNullException(nameof(userRepository));
     RegistrationBusinessLogic = registrationBusinessLogic ??
                                 throw new ArgumentNullException(nameof(registrationBusinessLogic));
     _organisationBusinessLogic = organisationBusinessLogic;
     Logger           = logger;
     SendEmailService = sendEmailService;
 }
예제 #25
0
 public AccountController(
     IIdentityServerInteractionService interaction,
     IClientStore clientStore,
     IAuthenticationSchemeProvider schemeProvider,
     IEventService events,
     IUserRepository userRepository,
     ILogger <AccountController> logger, IWebService webService, ISharedBusinessLogic sharedBusinessLogic) : base(
         logger, webService, sharedBusinessLogic)
 {
     _userRepository = userRepository;
     _interaction    = interaction;
     _clientStore    = clientStore;
     _schemeProvider = schemeProvider;
     _events         = events;
 }
예제 #26
0
 public ScopeBusinessLogic(
     ISharedBusinessLogic sharedBusinessLogic)
 {
     _sharedBusinessLogic = sharedBusinessLogic;
 }
 public SharedController(ILogger <SharedController> logger, IWebService webService,
                         ISharedBusinessLogic sharedBusinessLogic) : base(logger, webService, sharedBusinessLogic)
 {
 }
 public ChangePasswordViewService(IUserRepository userRepo, ISharedBusinessLogic sharedBusinessLogic)
 {
     _userRepository      = userRepo ?? throw new ArgumentNullException(nameof(userRepo));
     _sharedBusinessLogic = sharedBusinessLogic ?? throw new ArgumentNullException(nameof(sharedBusinessLogic));
 }
 public RegistrationController(
     IRegistrationService registrationService,
     ILogger <RegistrationController> logger, IWebService webService, ISharedBusinessLogic sharedBusinessLogic) : base(logger, webService, sharedBusinessLogic)
 {
     _registrationService = registrationService;
 }
예제 #30
0
 public AccountService(IUserRepository userRepository, IRegistrationBusinessLogic registrationBusinessLogic, ISharedBusinessLogic sharedBusinessLogic)
 {
     UserRepository            = userRepository;
     RegistrationBusinessLogic = registrationBusinessLogic;
     SharedBusinessLogic       = sharedBusinessLogic;
 }