public void AddCoffeeOrder_WhenNoCoffeeOrderInTransactionHandler_AddsCoffeeOrder() { var coffeeOrder = CreateCoffeeOrder(); _transactionHandler.AddCoffeeOrder(coffeeOrder); Assert.AreEqual(coffeeOrder, _transactionHandler.CoffeeOrder); }
private void btnAddCoffee_Click(object sender, EventArgs e) { var coffeeOrder = _coffeeOrderHandler.PlaceOrder(); _transactionHandler.AddCoffeeOrder(coffeeOrder); UpdateOrder(); ClearAddCoffeeForm(); SetStatus(); }