public void OnCancelCallsCancelChangesFromGeneralView() { Order order = GetPopulatedOrder(); controller.CurrentOrder = order; view.Order = GetPopulatedDisplayOrder(); Assert.IsFalse(controller.CancelChangesCalled); presenter.OnCancel(); Assert.IsTrue(controller.CancelChangesCalled); }
protected void CancelButton_Click(object sender, EventArgs e) { _presenter.OnCancel(); }