public void Vend_WhenCoffeeOrderInTransactionHandlerAndSufficientFunds_ReturnsCoffeeOrder() { var coffeeOrder = CreateCoffeeOrder(); _transactionHandler.AddCoffeeOrder(coffeeOrder); _transactionHandler.AddFunds(Denomination.Twenty); var vendedCoffeeOrder = _transactionHandler.Vend(); Assert.AreEqual(coffeeOrder, vendedCoffeeOrder); }
private void btnAddPayment_Click(object sender, EventArgs e) { _transactionHandler.AddFunds((Denomination)cbAmount.SelectedItem); UpdateCurrentPayment(); SetStatus(); }