public AppUnitOfWork(
            IValidationService validationService,
            IDomainEventBus domainEventBus,
            AppContext appContext,
            IAuthorRepository authorRepository,
            IBlogPostRepository blogPostRepository,
            ICategoryRepository categoryRepository,
            ILocationRepository locationRepository,
            ITagRepository tagRepository,
            ICarouselItemRepository carouselItemRepository,
            IContentHtmlRepository contentHtmlRepository,
            IContentTextRepository contentTextRepository,
            IFaqRepository faqRepository,
            IMailingListRepository mailingListRepository,
            IProjectRepository projectRepository,
            ITestimonialRepository testimonialRepository
            )
            : base(true, validationService, domainEventBus, appContext)
        {
            AuthorRepository   = authorRepository;
            BlogPostRepository = blogPostRepository;
            CategoryRepository = categoryRepository;
            LocationRepository = locationRepository;
            TagRepository      = tagRepository;

            AddRepository(AuthorRepository);
            AddRepository(BlogPostRepository);
            AddRepository(CategoryRepository);
            AddRepository(LocationRepository);
            AddRepository(TagRepository);

            CarouselItemRepository = carouselItemRepository;
            ContentHtmlRepository  = contentHtmlRepository;
            ContentTextRepository  = contentTextRepository;
            FaqRepository          = faqRepository;
            MailingListRepository  = mailingListRepository;
            ProjectRepository      = projectRepository;
            TestimonialRepository  = testimonialRepository;

            AddRepository(CarouselItemRepository);
            AddRepository(ContentHtmlRepository);
            AddRepository(ContentTextRepository);
            AddRepository(FaqRepository);
            AddRepository(MailingListRepository);
            AddRepository(ProjectRepository);
            AddRepository(TestimonialRepository);
        }
Esempio n. 2
0
 public EmailManagerController(IMailingListRepository mailingListRepository,
                               ISendMail mailSender)
 {
     this.mailingListRepository = mailingListRepository;
     this.mailSender            = mailSender;
 }
Esempio n. 3
0
 public ListManagerController(IMailingListRepository mailingListRepository)
 {
     this.mailingListRepository = mailingListRepository;
 }
Esempio n. 4
0
 public MailingListController(IMailingListRepository mailingListRepository, IEmailService emailService)
 {
     _mailingListRepository = mailingListRepository;
     _emailService          = emailService;
 }
Esempio n. 5
0
 public MailingList(IMailingListRepository repository)
 {
     _repository = repository;
 }
Esempio n. 6
0
 public MailingListController(IMailingListRepository mailingListRepository)
 {
     _mailingListRepository = mailingListRepository;
 }