private void GetBill() { var controller = new WaiterController(); var data = controller.GetBill(int.Parse(ActiveBills.SelectedValue)); BillToSplit.Value = data.BillID.ToString(); // Set the original bill items OriginalBillItems.DataSource = data.Items; OriginalBillItems.DataBind(); // empty out other bill NewBillItems.DataSource = null; NewBillItems.DataBind(); }
public void Should_Split_Bill() { // Arrange WaiterController sut = new WaiterController(); var aBill = GetActiveBills().First(); var actualBill = sut.GetBill(aBill.KeyValue); int midPoint = actualBill.Items.Count / 2; //List< // Act //sut.SplitBill(aBill.KeyValue, originals, newItems); // Assert }