protected void Page_Load(object sender, EventArgs e) { _presenter.OnLoadPage(); _presenter.LoadProducts(); GridView1.DataSource = Data; GridView1.DataBind(); }
public FormProducts() { InitializeComponent(); Products products = new Products(); Repository repository = new Repository(); productsPresenter = new ProductsPresenter(this, products, repository); productsPresenter.LoadProducts(); CreateBtnDelete(); }
private void BtnAllProduct_Click(object sender, EventArgs e) { productsPresenter.LoadProducts(); }
public void LoadProducts() { Assert.IsNull(_viewMock.Data); _presenter.LoadProducts(); Assert.AreEqual(1, _viewMock.Data.Count); }