示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _presenter.OnLoadPage();
            if (Page.IsPostBack)
            {
                return;
            }
            var productId = Request.QueryString["productId"];

            _presenter.LoadProduct(productId);
            btnDelete.Visible = ProductId != null;
        }
 public void OnLoadPage_SetsProperties()
 {
     _presenter.OnLoadPage();
     Assert.IsFalse(string.IsNullOrEmpty(_viewMock.Title));
 }