public override void Initialize()
 {
     base.Initialize();
     UserConnection            = Context.UserConnection;
     TemplateRepository        = new DCTemplateRepository <DCTemplateModel>(UserConnection);
     TemplateFactory           = new CESMailingTemplateFactory();
     ServiceApi                = Context.ServiceApi;
     Validator                 = new BulkEmailValidator(UserConnection, ServiceApi);
     BulkEmailEventLogger      = new BulkEmailEventLogger(UserConnection);
     AudienceDataSourceFactory = new BulkEmailAudienceDataSourceFactory();
     BulkEmailMacroParser      = GetMacroParser();
 }
        public override void Initialize()
        {
            base.Initialize();
            UserConnection            = Context.UserConnection;
            TemplateRepository        = new DCTemplateRepository <DCTemplateModel>(UserConnection);
            TemplateFactory           = new CESMailingTemplateFactory();
            ServiceApi                = Context.ServiceApi;
            Validator                 = new BulkEmailValidator(UserConnection, ServiceApi);
            BulkEmailEventLogger      = new BulkEmailEventLogger(UserConnection);
            AudienceDataSourceFactory = new BulkEmailAudienceDataSourceFactory();
            BulkEmailMacroParser      = GetMacroParser();
            InitializeAudienceDataSource(Context.BulkEmailEntity.PrimaryColumnValue);
            var validationBuilder = new BulkEmailRecipientValidatorBuilder(ServiceApi);

            RecipientsValidator = new BulkEmailRecipientValidator(validationBuilder);
        }