示例#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;
        }
 public UpdateFromCompaniesHouseService(IEventLogger customLogger, IDataRepository dataRepository, IOrganisationBusinessLogic organisationBusinessLogic,
                                        ICompaniesHouseAPI companiesHouseAPI, IPostcodeChecker postcodeChecker)
 {
     _CustomLogger              = customLogger;
     _DataRepository            = dataRepository;
     _organisationBusinessLogic = organisationBusinessLogic;
     _CompaniesHouseAPI         = companiesHouseAPI;
     _PostcodeChecker           = postcodeChecker;
 }
 public VehicleKeptChecker(IPostcodeChecker postcodeChecker)
 {
     _postcodeChecker = postcodeChecker;
 }
 public void SetUp()
 {
     _postcodeChecker = A.Fake<IPostcodeChecker>();
     _occupationRulesEngine = new OccupationRulesEngine();
     _basicRatingEngine = new BasicRatingEngine(_occupationRulesEngine, new VehicleKeptChecker(_postcodeChecker));
 }