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);
        }
Exemple #2
0
 public EmailManagerController(IMailingListRepository mailingListRepository,
                               ISendMail mailSender)
 {
     this.mailingListRepository = mailingListRepository;
     this.mailSender            = mailSender;
 }
Exemple #3
0
 public ListManagerController(IMailingListRepository mailingListRepository)
 {
     this.mailingListRepository = mailingListRepository;
 }
Exemple #4
0
 public MailingListController(IMailingListRepository mailingListRepository, IEmailService emailService)
 {
     _mailingListRepository = mailingListRepository;
     _emailService          = emailService;
 }
Exemple #5
0
 public MailingList(IMailingListRepository repository)
 {
     _repository = repository;
 }
Exemple #6
0
 public MailingListController(IMailingListRepository mailingListRepository)
 {
     _mailingListRepository = mailingListRepository;
 }