Example #1
0
 public ContactAdminController(ISiteService siteService, IContactInfoService cIS, IContactFormService cFS, IShapeFactory shapeFactory)
 {
     _siteService = siteService;
     _contactFormService = cFS;
     _contactInfoService = cIS;
     T = NullLocalizer.Instance;
     Shape = shapeFactory;
 }
 public ContactAdminController(ISiteService siteService, IContactInfoService cIS, IContactFormService cFS, IShapeFactory shapeFactory)
 {
     _siteService        = siteService;
     _contactFormService = cFS;
     _contactInfoService = cIS;
     T     = NullLocalizer.Instance;
     Shape = shapeFactory;
 }
 public FileUploadController(INotifier notifier, IContentManager contentManager, IMediaLibraryService mediaLibraryService, IContactFormService contactFormService)
 {
     _mediaLibraryService = mediaLibraryService;
     _contactFormService  = contactFormService;
     _contentManager      = contentManager;
     _notifier            = notifier;
     T = NullLocalizer.Instance;
 }
Example #4
0
 public ContactController(IOrchardServices services, IContactInfoService cis, IContactFormService cfs, INotifier notifier, IAuthorizer auth)
 {
     Services = services;
     _notifier = notifier;
     _authorizer = auth;
     _cIS = cis;
     _cFS = cfs;
     T = NullLocalizer.Instance;
 }
 public HomeController(
     IEmailSender emailSender,
     ICategoriesService categoriesService,
     IContactFormService contactService)
 {
     this.emailSender       = emailSender;
     this.categoriesService = categoriesService;
     this.contactService    = contactService;
 }
Example #6
0
 public ContactController(IOrchardServices services, IContactInfoService cis, IContactFormService cfs, INotifier notifier, IAuthorizer auth)
 {
     Services    = services;
     _notifier   = notifier;
     _authorizer = auth;
     _cIS        = cis;
     _cFS        = cfs;
     T           = NullLocalizer.Instance;
 }
 public ContactFormController(
     IShapeFactory shapeFactory, 
     IContactFormService contactFormService, IClock clock, IAuthorizer authorizer)
 {
     T = NullLocalizer.Instance;
     New = shapeFactory;
     _contactFormService = contactFormService;
     _clock = clock;
     _authorizer = authorizer;
 }
        public ContactFormEntryPartHandler(IRepository <ContactFormEntryPartRecord> repo, IContactFormService cfs)
        {
            _contactFormService = cfs;

            Filters.Add(StorageFilter.For(repo));

            OnCreated <ContactFormEntryPart>(
                (context, part) => _contactFormService.SendMaiLOnContactFormCreated(context.ContentItem)
                );
        }
 public ContactFormController(
     IShapeFactory shapeFactory,
     IContactFormService contactFormService, IClock clock, IAuthorizer authorizer)
 {
     T   = NullLocalizer.Instance;
     New = shapeFactory;
     _contactFormService = contactFormService;
     _clock      = clock;
     _authorizer = authorizer;
 }
        public ContactFormEntryPartHandler(IRepository<ContactFormEntryPartRecord> repo, IContactFormService cfs)
        {
            _contactFormService = cfs;

            Filters.Add(StorageFilter.For(repo));

            OnCreated<ContactFormEntryPart>(
                    (context, part) => _contactFormService.SendMaiLOnContactFormCreated(context.ContentItem)
                );

        }
Example #11
0
 public HomeController(
     IModelService modelService,
     IContactFormService contactService,
     IBlogService blogService,
     IEmailSender emailSender)
 {
     this.modelService   = modelService;
     this.contactService = contactService;
     this.blogService    = blogService;
     this.emailSender    = emailSender;
 }
Example #12
0
        public void Setup()
        {
            this.mock = this.GetTestData().AsQueryable().BuildMock();

            this.mockContactFormRepository = new Mock <IRepository <ContactFormEntry> >();
            this.mockContactFormRepository
            .Setup(a => a.All())
            .Returns(this.mock.Object);

            this.mockContactFormService = new ContactFormService(this.mockContactFormRepository.Object);
        }
 public ContactFormController(
     IContactFormService contactFormService,
     IOrchardServices orchardServices,
     IFrontEndEditService frontEndEditService,
     IContentManager contentManager,
     IWorkflowManager workflowManager)
 {
     _contactFormService   = contactFormService;
     _orchardServices      = orchardServices;
     _frontEndEditeService = frontEndEditService;
     _contentManager       = contentManager;
     _workflowManager      = workflowManager;
 }
Example #14
0
        public ContactFormController(
            IContactFormService contactFormService,
            IOrchardServices orchardServices,
            IFrontEndEditService frontEndEditService,
            IContentManager contentManager,
            IWorkflowManager workflowManager,
            INotifier notifier)
        {
            _contactFormService   = contactFormService;
            _orchardServices      = orchardServices;
            _frontEndEditeService = frontEndEditService;
            _contentManager       = contentManager;
            _workflowManager      = workflowManager;
            _notifier             = notifier;

            T = NullLocalizer.Instance;
        }
Example #15
0
        private async Task <int> GetNewEmailId(IContactFormService contactFormService, EfRepository <ContactFormEntry> contactFormRepository)
        {
            var newEmail = new ContactFormViewModel()
            {
                Name  = "Test",
                Email = "*****@*****.**",
            };

            var result = await contactFormService.AddAsync(newEmail);

            var emailId = contactFormRepository
                          .All()
                          .Where(e => e.Email == "*****@*****.**")
                          .Select(e => e.Id)
                          .FirstOrDefault();

            return(emailId);
        }
 public AdminController(IContactFormService contactFormService)
 {
     _contactFormService = contactFormService;
     T = NullLocalizer.Instance;
 }
 public ContactFormController(IContactFormService contactFormService, IOrchardServices orchardServices)
 {
     _contactFormService = contactFormService;
     _orchardServices    = orchardServices;
 }
 public ContactController(IContactFormService contactFormService, IEmailSender emailSender)
 {
     this.contactFormService = contactFormService;
     this.emailSender        = emailSender;
 }
 public HomeController(IContactFormService homeService,
                       IEmailSender emailSender)
 {
     this.homeService = homeService;
     this.emailSender = emailSender;
 }
Example #20
0
 public ContactSurfaceController(IContactFormService contactFormService, ICaptchaService capchaService)
 {
     _contactFormService = contactFormService;
     _captchaService     = capchaService;
 }
 public ContactFormAdminController(IContactFormService contactFormService)
 {
     _contactFormService = contactFormService;
     T = NullLocalizer.Instance;
 }
 public MessagesApiController(IContactFormService contactFormService)
 {
     _contactFormService = contactFormService;
 }
 public AdminMenu(IContactFormService contactFormService, IAuthorizer authorizer)
 {
     _contactFormService = contactFormService;
     _authorizer = authorizer;
 }
Example #24
0
 public AdminMenu(IContactFormService contactFormService, IAuthorizer authorizer)
 {
     _contactFormService = contactFormService;
     _authorizer         = authorizer;
 }
 public HomeController(IContactFormService contactFormServices)
 {
     this._contactFormServices = contactFormServices;
 }
Example #26
0
 public ContactFormController(IContactFormService contactFormService, IContentManager contenteManager)
 {
     _contactFormService = contactFormService;
     _contentManager     = contenteManager;
 }