public ProductController(IProductRepository productRepository, ICategoryRepository categoryRepository, 
     ICategoryPresenter categoryPresenter)
 {
     _productRepository = productRepository;
     _categoryRepository = categoryRepository;
     _categoryPresenter = categoryPresenter;
 }
        public void Bind(CoreArticleData articleData)
        {
            categoryRepository = CompositionRootHelper.GetCompositionRoot(Context).CategoryRepository;
            categoryPresenter = CompositionRootHelper.GetCompositionRoot(Context).CategoryPresenter;

            if (articleData != null)
            {
                lblOfferDate.Text = articleData.PublishDate.ToLongDateString();

                var categories = categoryPresenter.GetCategories(articleData);
                foreach (var categoryData in categories)
                {
                    plhCategoryLinks.Controls.Add(CreateLink(categoryData));
                    if (categoryData != categories.Last())
                    {
                        plhCategoryLinks.Controls.Add(new Literal { Text = ", " });
                    }
                }
            }
        }
 public CategoryController(ICategoryRepository categoryRepository, ICategoryPresenter categoryPresenter)
 {
     _categoryRepository = categoryRepository;
     _categoryPresenter = categoryPresenter;
 }