Beispiel #1
0
        public static void Main()
        {
            Tapper tap = new Tapper();
               TeaCup teaCup = new TeaCup();

               TeaBag teaBag = new TeaBag();
               teaCup.steepTeaBag(teaBag);
               tap.test("Steeping tea bag ", teaBag.teaBagIsSteeped, true );

               LooseLeafTea looseLeafTea = new LooseLeafTea();
               TeaBall teaBall = new TeaBall(looseLeafTea);
               teaCup.steepTeaBag(teaBall);
               tap.test("Steeping loose leaf tea", teaBag.teaBagIsSteeped, true);

            tap.done();
        }
Beispiel #2
0
        public static void Main()
        {
            Tapper tap    = new Tapper();
            TeaCup teaCup = new TeaCup();

            TeaBag teaBag = new TeaBag();

            teaCup.steepTeaBag(teaBag);
            tap.test("Steeping tea bag ", teaBag.teaBagIsSteeped, true);

            LooseLeafTea looseLeafTea = new LooseLeafTea();
            TeaBall      teaBall      = new TeaBall(looseLeafTea);

            teaCup.steepTeaBag(teaBall);
            tap.test("Steeping loose leaf tea", teaBag.teaBagIsSteeped, true);

            tap.done();
        }