public AtomSyndicationFeedFormatter(IStaticContentLinkService staticContentLinkService) { _staticContentLinkService = staticContentLinkService; SupportedMediaTypes.Add(new MediaTypeHeaderValue(ATOM_CONTENT_TYPE)); }
public StaticContentLinkController(IStaticContentLinkService staticContentLinkService) { _staticContentLinkService = staticContentLinkService; }
public void Setup() { _articleRepository = MockRepository.GenerateStub<IArticleRepository>(); _articleTaxonomyRepository = MockRepository.GenerateStub<IArticleTaxonomyRepository>(); _staticContentLinkService = MockRepository.GenerateStub<IStaticContentLinkService>(); _urlHelper = MockRepository.GenerateStub<IUrlHelper>(); _taxonomyRepository = MockRepository.GenerateStub<ITaxonomyRepository>(); _articleService = new ArticleService(_articleRepository, _articleTaxonomyRepository, _taxonomyRepository); _objectUnderTest = new ArticleController(_articleService, _staticContentLinkService, _urlHelper); _objectUnderTest.Request = new HttpRequestMessage(); _objectUnderTest.Request.SetConfiguration(new HttpConfiguration()); }
public TaxonomyController(IArticleService articleService, IStaticContentLinkService staticContentLinkService, IUrlHelper urlHelper) { _articleService = articleService; _urlHelper = urlHelper; _staticContentLinkService = staticContentLinkService; }
public StaticPageController(IStaticPageService staticPageService, IStaticContentLinkService staticContentLinkService, IUrlHelper urlHelper) { _staticPageService = staticPageService; _urlHelper = urlHelper; _staticContentLinkService = staticContentLinkService; }