示例#1
0
        private static void PrintDarkChocolateDetails()
        {
            ChocolateBoiler fromDarkChoco = new ChocolateBoiler();

            fromDarkChoco.PrintDetails("I'm dark chocolate!");

            Thread.Sleep(5000);
            fromDarkChoco.Fill();

            Thread.Sleep(5000);
            fromDarkChoco.Boil();

            Thread.Sleep(5000);
            fromDarkChoco.Drain();
        }
示例#2
0
        private static void PrintWhiteChocolateDetails()
        {
            ChocolateBoiler fromWhiteChoco = new ChocolateBoiler();

            fromWhiteChoco.PrintDetails("I'm white chocolate!");


            Thread.Sleep(2000);
            fromWhiteChoco.Fill();

            Thread.Sleep(2000);
            fromWhiteChoco.Boil();

            Thread.Sleep(2000);
            fromWhiteChoco.Drain();
        }