コード例 #1
0
        public void MinimalInput_ForSetPricing_ProducesCorrectPrice(
            IEnumerable <Product> products, Pricing pricing, Money total)
        {
            // Arrange
            var sut = new PointOfSaleTerminal(pricing);

            // Act
            sut.ScanMany(products);
            var actualTotal = sut.CalculateTotal();

            // Assert
            actualTotal.Should().NotBeNull().And.BeEquivalentTo(total);
        }