Example #1
0
        public void ShouldResetTheCreditToZero()
        {
            var machineService = new MachineService(new ProductRepository());

            machineService.AddCredit(new Money(1, 0, 0, 0));
            machineService.CancelPurchase();


            Assert.AreEqual(machineService.Machine.CreditMoney.Total, Money.Zero.Total);
        }