public void print_total()
        {
            _shoppingBasket.Total().Returns(new Money(10.00m));

            _application.Execute("Total");

            _display.Received().Show(Arg.Is <Money>(
                                         output => output.Equals(new Money(10.00m))));
        }
Beispiel #2
0
        private void ShowTotal()
        {
            Money total = _shoppingBasket.Total();

            _display.Show(total);
        }