public ContentTypeFactory( ISimpleTagParserContainer tagParserContainer, IDynamicTagParser <Profile> profileTagParser, MarkdownWrapper markdownWrapper, IDynamicTagParser <Document> documentTagParser, IDynamicTagParser <Alert> alertsInlineTagParser, IHttpContextAccessor httpContextAccesor, IDynamicTagParser <S3BucketSearch> s3BucketParser, IDynamicTagParser <PrivacyNotice> privacyNoticeTagParser) { var sectionFactory = new SectionFactory(tagParserContainer, profileTagParser, markdownWrapper, documentTagParser, alertsInlineTagParser, s3BucketParser, privacyNoticeTagParser, null); var contactUsCategoryFactory = new ContactUsCategoryFactory(tagParserContainer, markdownWrapper, documentTagParser, null); var triviaFactory = new TriviaFactory(markdownWrapper); _factories.Add(typeof(Section), sectionFactory); _factories.Add(typeof(Article), new ArticleFactory(tagParserContainer, profileTagParser, sectionFactory, markdownWrapper, documentTagParser, alertsInlineTagParser, s3BucketParser, privacyNoticeTagParser, null)); _factories.Add(typeof(DocumentPage), new DocumentPageFactory(markdownWrapper)); _factories.Add(typeof(News), new NewsFactory(tagParserContainer, markdownWrapper, documentTagParser)); _factories.Add(typeof(Event), new EventFactory(tagParserContainer, markdownWrapper, documentTagParser)); _factories.Add(typeof(Homepage), new HomepageFactory(markdownWrapper)); _factories.Add(typeof(GroupHomepage), new GroupHomepageFactory(tagParserContainer, markdownWrapper)); _factories.Add(typeof(Group), new GroupFactory(tagParserContainer, markdownWrapper, documentTagParser)); _factories.Add(typeof(Payment), new PaymentFactory(tagParserContainer, markdownWrapper)); _factories.Add(typeof(ServicePayPayment), new ServicePayPaymentFactory(tagParserContainer, markdownWrapper)); _factories.Add(typeof(Showcase), new ShowcaseFactory(tagParserContainer, markdownWrapper, triviaFactory)); _factories.Add(typeof(Organisation), new OrganisationFactory(markdownWrapper, httpContextAccesor)); _factories.Add(typeof(PrivacyNotice), new PrivacyNoticeFactory(markdownWrapper)); _factories.Add(typeof(StartPage), new StartPageFactory(tagParserContainer, markdownWrapper, alertsInlineTagParser)); _factories.Add(typeof(ContactUsArea), new ContactUsAreaFactory(tagParserContainer, markdownWrapper, contactUsCategoryFactory)); _factories.Add(typeof(List <Models.Trivia>), triviaFactory); }
public ContactUsCategoryFactory(ISimpleTagParserContainer tagParserContainer, MarkdownWrapper markdownWrapper, IDynamicTagParser <Document> documentTagParser, IRepository repository) { _tagParserContainer = tagParserContainer; _markdownWrapper = markdownWrapper; _documentTagParser = documentTagParser; _repository = repository; }
public SectionFactory(ISimpleTagParserContainer tagParserContainer, IDynamicTagParser <Profile> profileTagParser, MarkdownWrapper markdownWrapper, IDynamicTagParser <Document> documentTagParser, IDynamicTagParser <Alert> alertsInlineTagParser, IDynamicTagParser <S3BucketSearch> searchTagParser, IDynamicTagParser <PrivacyNotice> privacyNoticeTagParser, IRepository repository) { _tagParserContainer = tagParserContainer; _markdownWrapper = markdownWrapper; _profileTagParser = profileTagParser; _documentTagParser = documentTagParser; _alertsInlineTagParser = alertsInlineTagParser; _searchTagParser = searchTagParser; _privacyNoticeTagParser = privacyNoticeTagParser; _repository = repository; }
public ProfileServiceTests() { _triviaFactory = new Mock <ITriviaFactory>(); _repository = new Mock <IRepository>(); _parser = new Mock <ISimpleTagParserContainer>(); _markdownWrapper = new MarkdownWrapper(); _logger = new Mock <ILogger <Alert> >(); _viewRender = new Mock <IViewRender>(); _inlineQuoteTagParser = new Mock <IDynamicTagParser <InlineQuote> >(); _alerts = new AlertsInlineTagParser(_viewRender.Object, _logger.Object, new FeatureToggles() { SemanticInlineAlert = true }); _service = new ProfileService(_repository.Object, _parser.Object, _markdownWrapper, _alerts, _triviaFactory.Object, _inlineQuoteTagParser.Object); }
public ProfileService( IRepository repository, ISimpleTagParserContainer parser, MarkdownWrapper markdownWrapper, IDynamicTagParser <Alert> alertsInlineTagParser, ITriviaFactory triviaFactory, IDynamicTagParser <InlineQuote> inlineQuotesTagParser) { _repository = repository; _parser = parser; _markdownWrapper = markdownWrapper; _alertsInlineTagParser = alertsInlineTagParser; _triviaFactory = triviaFactory; _inlineQuotesTagParser = inlineQuotesTagParser; }
public GroupFactory(ISimpleTagParserContainer parser, MarkdownWrapper markdownWrapper, IDynamicTagParser <Document> documentParser) { _parser = parser; _markdownWrapper = markdownWrapper; _documentParser = documentParser; }
public EventFactory(ISimpleTagParserContainer simpleTagParserContainer, MarkdownWrapper markdownWrapper, IDynamicTagParser <Document> documentTagParser) { _simpleTagParserContainer = simpleTagParserContainer; _markdownWrapper = markdownWrapper; _documentTagParser = documentTagParser; }
public StartPageFactory(ISimpleTagParserContainer tagParserContainer, MarkdownWrapper markdownWrapper, IDynamicTagParser <Alert> alertsInlineTagParser) { _tagParserContainer = tagParserContainer; _markdownWrapper = markdownWrapper; _alertsInlineTagParser = alertsInlineTagParser; }