Ejemplo n.º 1
0
        public void ComputesTeaWithMilkAndCinnamonPrice()
        {
            var teaWithMilk =
                BeverageFactory.CreateTeaWithMilkAndCinnamon();

            Assert.Equal(1.65, teaWithMilk.Price(), 3);
        }
Ejemplo n.º 2
0
        public void ComputesCoffeeWithMilkAndCreamPrice()
        {
            var coffeeWithMilkAndCream =
                BeverageFactory.CreateCoffeeWithMilkAndCream();

            Assert.Equal(1.45, coffeeWithMilkAndCream.Price(), 3);
        }
Ejemplo n.º 3
0
        public void ComputesHotChocolateWithCinnamonPrice()
        {
            var hotChocolate =
                BeverageFactory.CreateHotChocolateWithCinnamon();

            Assert.Equal(1.50, hotChocolate.Price(), 3);
        }
Ejemplo n.º 4
0
        public void ComputesHotChocolateWithCreamPrice()
        {
            var hotChocolateWithCream =
                BeverageFactory.CreateHotChocolateWithCream();

            Assert.Equal(1.60, hotChocolateWithCream.Price(), 3);
        }
Ejemplo n.º 5
0
        public void ComputesCoffeeWithMilkCreamAndCinnamonPrice()
        {
            var coffeeWithMilkAndCream =
                BeverageFactory.CreateCoffeeWithMilkCreamAndCinnamon();

            Assert.Equal(1.50, coffeeWithMilkAndCream.Price(), 3);
        }
 public MenuStateMachine(IGraphicUserInterface gui)
 {
     this.gui                     = gui;
     this.currentState            = MenuStateMachineState.Initialized;
     this.menuPrinter             = new MenuPrinter(gui);
     this.menuTransitionValidator = new MenuTransitionValidator();
     this.isStarted               = false;
     this.beverageFactory         = new BeverageFactory();
 }
Ejemplo n.º 7
0
        public void ComputesCoffeePrice()
        {
            var coffee = BeverageFactory.CreateCoffee();

            Assert.Equal(1.20, coffee.Price(), 3);
        }
Ejemplo n.º 8
0
        public void ComputesTeaWithCinnamonPrice()
        {
            var tea = BeverageFactory.CreateTeaWithCinnamon();

            Assert.Equal(1.55, tea.Price(), 3);
        }
Ejemplo n.º 9
0
        public void ComputesCoffeeWithCinnamonPrice()
        {
            var coffee = BeverageFactory.CreateCoffeeWithCinnamon();

            Assert.Equal(1.25, coffee.Price(), 3);
        }
Ejemplo n.º 10
0
        public void ComputesCoffeeWithMilkPrice()
        {
            var coffeeWithMilk = BeverageFactory.CreateCoffeeWithMilk();

            Assert.Equal(1.30, coffeeWithMilk.Price(), 3);
        }
Ejemplo n.º 11
0
        public void ComputesTeaWithMilkPrice()
        {
            var teaWithMilk = BeverageFactory.CreateTeaWithMilk();

            Assert.Equal(1.60, teaWithMilk.Price(), 3);
        }
Ejemplo n.º 12
0
        public void ComputesHotChocolatePrice()
        {
            var hotChocolate = BeverageFactory.CreateHotChocolate();

            Assert.Equal(1.45, hotChocolate.Price(), 3);
        }
Ejemplo n.º 13
0
        public void ComputesTeaPrice()
        {
            var tea = BeverageFactory.CreateTea();

            Assert.Equal(1.50, tea.Price(), 3);
        }
Ejemplo n.º 14
0
 public void Setup()
 {
     beverageFactory = new BeverageFactory();
     priceList       = new List <Price>();
 }