Ejemplo n.º 1
0
        public static void Test()
        {
            TeaMaker maker = new TeaMaker();
            TeaCup   cup   = maker.makeTeaCup();

            Console.WriteLine(cup.ToString());
        }
Ejemplo n.º 2
0
        public TeaCup makeTeaCup()
        {
            TeaCup cup   = new TeaCup();
            TeaBag bag   = new TeaBag();
            Water  water = new Water();

            cup.addTeaBag(bag);
            water.boilWater();
            cup.AddWater(water);
            cup.steepTeaBag();
            return(cup);
        }