Esempio n. 1
0
        public void CoffeeReportsCorrectPrice()
        {
            // Arrange
            coffee.Size   = CoffeeSize.LARGE;
            coffee.Sugars = 1;
            coffee.Creams = 1;

            // Act
            decimal price = coffee.GetPrice();

            // Assert
            Assert.True(price == (LARGE_PRICE + SUGAR_PRICE + CREAM_PRICE));
        }
        private void Start()
        {
            if (!IsShowOnStart)
            {
                return;
            }

            Debug.Log("<color=brown><b> DECORATOR START </b></color>");

            Debug.Log(_coffeeWithMilkAndChocolate.GetDescription() + "| price : " +
                      _coffeeWithMilkAndChocolate.GetPrice());



            Debug.Log(_coffeeWithMilk.GetDescription() + "| price : " +
                      _coffeeWithMilk.GetPrice());

            Debug.Log("<color=brown><b> DECORATOR FINISH </b></color>");
        }
Esempio n. 3
0
 public int GetPrice()
 {
     return(_coffee.GetPrice() + _price);
 }
Esempio n. 4
0
 public decimal GetPrice()
 {
     return(coffee.GetPrice() + 0.5m);
 }
 public double GetPrice()
 {
     return(_coffee.GetPrice());
 }
Esempio n. 6
0
 public int GetPrice()
 {
     return(_coffee.GetPrice() + _priceOfChocolate);
 }