コード例 #1
0
        public void ThenTheBasketHasTheFollowingTotals(Table table)
        {
            var expectedBasketTotals = table.CreateSet <TestTotals>()
                                       .Select(row => new DefaultBasket
            {
                SubTotal = row.SubTotal.IntoDecimal(),
                Tax      = row.Tax.IntoDecimal(),
                Total    = row.Total.IntoDecimal()
            })
                                       .FirstOrDefault();

            _shoppingBasket.Should().BeEquivalentTo(expectedBasketTotals, options => options.Excluding(o => o.Items));
        }