Beispiel #1
0
        public static void IsNotMain(string[] args)
        {
            AnimalFeedingServices svc = new AnimalFeedingServices();
            svc.FoodBowlEmpty = true;
            Console.WriteLine(svc.Feed());

            AnimalFeedingServiceAfter svcAfter = new AnimalFeedingServiceAfter(new FeederService());

            Console.WriteLine(svcAfter.Feed());

            Console.Read();
        }
Beispiel #2
0
        public static void IsNotMain(string[] args)
        {
            AnimalFeedingServices svc = new AnimalFeedingServices();

            svc.FoodBowlEmpty = true;
            Console.WriteLine(svc.Feed());

            AnimalFeedingServiceAfter svcAfter = new AnimalFeedingServiceAfter(new FeederService());

            Console.WriteLine(svcAfter.Feed());

            Console.Read();
        }