protected void NextButton_Click(object sender, EventArgs e)
 {
     this.Page.Validate();
     if (this.Page.IsValid)
     {
         _presenter.OnNext();
     }
 }
예제 #2
0
        public void OnNextGetsAndUpdatesCurrentOrderFromController()
        {
            Order order = GetPopulatedOrder();

            controller.CurrentOrder = order;
            view.Order         = GetPopulatedDisplayOrder();
            view.Order.Address = "TEST ADDRESS";
            controller.SetCurrentOrderCalled = false;
            Assert.IsFalse(controller.GetCurrentOrderCalled);
            Assert.IsFalse(controller.SetCurrentOrderCalled);

            presenter.OnNext();

            Assert.IsTrue(controller.GetCurrentOrderCalled);
            Assert.IsTrue(controller.SetCurrentOrderCalled);
            Assert.AreEqual("TEST ADDRESS", controller.CurrentOrder.ShipAddress);
        }