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) }; }
public BookAViewingCampaignLogic(IDataGatherFactory<ApplicationSummary> dataGatherFactory, ISubscriberTrackingService<ApplicationSummary> subscriberTrackingService) { Check.If(dataGatherFactory).IsNotNull(); _dataGatherFactory = dataGatherFactory; _subscriberTrackingService = subscriberTrackingService; CampaignType = "BookAViewing"; }
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"; }
public HasGuarantorSubscriberState(IApplicationService applicationService, ISubscriberTrackingService<ApplicationSummary> followUpService) { Check.If(applicationService).IsNotNull(); Check.If(followUpService).IsNotNull(); _applicationService = applicationService; _followUpService = followUpService; SegmentType = "TenantCompleteNoGuarantor"; }
public SubscriberStateFactory(IList<ISubscriberState> subscriberState, IApplicationService applicationService, ISubscriberTrackingService<ApplicationSummary> followUpService) { Check.If(applicationService).IsNotNull(); _subscriberStates = new List<ISubscriberState> { new HasGuarantorSubscriberState(applicationService, followUpService), new HasLikedPropertySubscriberState(applicationService), new HasApprovedGuarantorSubscriberState(applicationService), }; }
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"; }
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"; }