Ejemplo n.º 1
0
        public void GivenACartAndABalanceWhenQueriedTheCountOfItemsDrivenIntoNegativeBalanceReflectsTheCartAndTheBalance()
        {
            var sut = new BLShoppingCart();

            sut.AddSomeItems();

            sut.CountOfItemsDrivenIntoNegativeBalance(5.00M).Should().Be(2);
        }
        public void WhenItemsAreAddedToTheCartThenTheRunningSubTotalPricesReflectThoseItems()
        {
            var expected = new List <decimal> {
                1.15M, 6.65M, 7.75M
            };
            var sut = new BLShoppingCart();

            sut.AddSomeItems();

            sut.RunningSubTotalPrices().ShouldAllBeEquivalentTo(expected);
        }