コード例 #1
0
        public CampaignLogicFactory(
            ISubscriberTrackingService<ApplicationSummary> applicationSubscriberTrackingService,
            IDataGatherFactory<ApplicationSummary> applicationGatherFactory,
            IDataGatherFactory<LandlordSummary> landlordGatherFactory,
            ISubscriberTrackingService<LandlordSummary> landlordSubscriberTrackingService,
            IApplicationService applicationService,
            ILetMeServiceUrlSettings letMeServiceUrlSettings,
            ISubscriberRecordService subscriberRecordService,
            ILogger logger
            )
        {
            Check.If(landlordSubscriberTrackingService).IsNotNull();
            Check.If(applicationService).IsNotNull();
            Check.If(applicationGatherFactory).IsNotNull();
            Check.If(letMeServiceUrlSettings).IsNotNull();
            Check.If(landlordSubscriberTrackingService).IsNotNull();

            _campaignLogic = new List<ICampaignLogic>
            {
                new AddApplicationNoGuarantorEventLogic(applicationGatherFactory, applicationSubscriberTrackingService, logger),
                new NewPropertyAddedEventLogic(applicationGatherFactory, applicationSubscriberTrackingService, letMeServiceUrlSettings, subscriberRecordService, logger),
                new BookAViewingCampaignLogic(applicationGatherFactory, applicationSubscriberTrackingService),
                new DeclinedGuarantorCampaignLogic(applicationGatherFactory, applicationSubscriberTrackingService),
                new NewPropertySubmissionCampaignLogic(landlordGatherFactory,landlordSubscriberTrackingService)
            };
        }
コード例 #2
0
        public BookAViewingCampaignLogic(IDataGatherFactory<ApplicationSummary> dataGatherFactory, ISubscriberTrackingService<ApplicationSummary> subscriberTrackingService)
        {
            Check.If(dataGatherFactory).IsNotNull();

            _dataGatherFactory = dataGatherFactory;
            _subscriberTrackingService = subscriberTrackingService;

            CampaignType = "BookAViewing";
        }
コード例 #3
0
        public DeclinedGuarantorCampaignLogic(IDataGatherFactory<ApplicationSummary> dataGatherFactory, ISubscriberTrackingService<ApplicationSummary> subscriberTrackingService)
        {
            Check.If(dataGatherFactory).IsNotNull();

            _dataGatherFactory = dataGatherFactory;
            _subscriberTrackingService = subscriberTrackingService;

            CampaignType = "DeclinedGuarantor";
        }
        public NewPropertySubmissionCampaignLogic(IDataGatherFactory<LandlordSummary> dataGatherFactory, ISubscriberTrackingService<LandlordSummary> subscriberTrackingService)
        {
            Check.If(dataGatherFactory).IsNotNull();
            Check.If(subscriberTrackingService).IsNotNull();

            _dataGatherFactory = dataGatherFactory;
            _subscriberTrackingService = subscriberTrackingService;

            CampaignType = "LandlordNewPropertySubmission";
        }
コード例 #5
0
        public AddApplicationNoGuarantorEventLogic(IDataGatherFactory<ApplicationSummary> dataGatherFactory,
            ISubscriberTrackingService<ApplicationSummary> subscriberTrackingService, ILogger logger)
        {
            Check.If(dataGatherFactory).IsNotNull();
            Check.If(subscriberTrackingService).IsNotNull();
            Check.If(logger).IsNotNull();

            _dataGatherFactory = dataGatherFactory;
            _subscriberTrackingService = subscriberTrackingService;
            _logger = logger;

            CampaignType = "ApplicationNoGuarantorAdd";
        }
コード例 #6
0
        public NewPropertyAddedEventLogic(IDataGatherFactory<ApplicationSummary> dataGatherFactory,
            ISubscriberTrackingService<ApplicationSummary> subscriberTrackingService, ILetMeServiceUrlSettings urlSettings,
            ISubscriberRecordService recordService, ILogger logger)
        {
            Check.If(dataGatherFactory).IsNotNull();
            Check.If(subscriberTrackingService).IsNotNull();
            Check.If(urlSettings).IsNotNull();
            Check.If(recordService).IsNotNull();
            Check.If(logger).IsNotNull();

            _dataGatherFactory = dataGatherFactory;
            _recordService = recordService;
            _logger = logger;
            _subscriberTrackingService = subscriberTrackingService;

            CampaignType = "NewPropertyAdded";
        }