Ejemplo n.º 1
0
        public void Wear_ShouldBeBasePriceEqualToFinalPrice_WhenIsNewState(string name, double basePrice)
        {
            //Arrange
            //Act
            var wear = new Wear(name, basePrice);

            //Assert
            wear.GetPrice().Should().Be(basePrice);
        }
Ejemplo n.º 2
0
        public void Wear_ShouldBeHalfBasePrice_WhenIsSaleState(
            string name,
            double basePrice,
            double finalPrice)
        {
            //Arrange
            //Act
            var sale = new Sale();
            var wear = new Wear(name, basePrice, sale);

            //Assert
            wear.GetPrice().Should().Be(finalPrice);
        }
Ejemplo n.º 3
0
        public void Wear_ShouldBeBasePriceLessDiscount_WhenIsPromotionState(
            string name,
            double basePrice,
            double discount,
            double finalPrice)
        {
            //Arrange
            //Act
            var promotion = new Promotion(discount);
            var wear      = new Wear(name, basePrice, promotion);

            //Assert
            wear.GetPrice().Should().Be(finalPrice);
        }