コード例 #1
0
        public void AddAmount_ShouldAddAmount()
        {
            //Arrange
            var orderItem = new OrderItem(productId: 1, amount: 1);

            var expectedAmount = 2;

            //Act
            orderItem.AddAmount(1);

            //Assert
            orderItem.Amount.Should().Be(expectedAmount);
        }