/// <summary> /// Initializes a new instance of the <see cref="CategoryProductsPresenterTest" /> class. /// </summary> public CategoryProductsPresenterTest() { this.view = Substitute.For<ICategoryProductsView>(); this.repository = Substitute.For<IProductRepository>(); this.httpContext = Substitute.For<HttpContextBase>(); new CategoryProductsPresenter(this.view, this.repository) { HttpContext = this.httpContext }; }
public CategoryProductsPresenter(ICategoryProductsView view, ProductService productService) { _productService = productService; _view = view; }