Beispiel #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     _presenter.OnLoadPage();
     _presenter.LoadProducts();
     GridView1.DataSource = Data;
     GridView1.DataBind();
 }
Beispiel #2
0
        public FormProducts()
        {
            InitializeComponent();
            Products   products   = new Products();
            Repository repository = new Repository();

            productsPresenter = new ProductsPresenter(this, products, repository);
            productsPresenter.LoadProducts();
            CreateBtnDelete();
        }
Beispiel #3
0
 private void BtnAllProduct_Click(object sender, EventArgs e)
 {
     productsPresenter.LoadProducts();
 }
Beispiel #4
0
 public void LoadProducts()
 {
     Assert.IsNull(_viewMock.Data);
     _presenter.LoadProducts();
     Assert.AreEqual(1, _viewMock.Data.Count);
 }