public void ShouldAddAndShowNewLineOnAdd() { presenter.OnAddOrderItemLine(); Assert.IsTrue(view.OrderItemsLinesShown); Assert.AreEqual(1, view.OrderItemsLines.Count); Assert.AreEqual((short)1, view.OrderItemsLines[0].Quantity); }
protected void AddOrderItemLineButton_Command(object sender, CommandEventArgs e) { UpdateRowIfInEditMode(); if (Page.IsValid) { _presenter.OnAddOrderItemLine(); SetLastRowToEditMode(); } }