コード例 #1
0
        static void Main(string[] args)
        {
            StrategyPatternTest strategyPattern = new StrategyPatternTest();

            strategyPattern.MiniDuckSimulator();
            strategyPattern.RPGSimulator();
            Console.WriteLine();

            ObserverPatternTest observerPattern = new ObserverPatternTest();

            observerPattern.WeatherStation();
            Console.WriteLine();

            DecoratorPatternTest decoratorPattern = new DecoratorPatternTest();

            decoratorPattern.StarBuzzCoffee();
            Console.WriteLine();

            FactoryPatternTest factoryPattern = new FactoryPatternTest();

            factoryPattern.BuyCheesePizza();
            Console.WriteLine();

            Console.ReadLine();
        }
コード例 #2
0
 static void Main(string[] args)
 {
     MementoTest.Testing();
     Hr();
     StateTest.Testing();
     Hr();
     IteratorTest.Testing();
     Hr();
     DelegateMiddlewareEx.Run();
     Hr();
     ActionFunc.Run();
     Hr();
     PipeConceptTest.Run();
     Hr();
     StategyPatternTest.Run();
     Hr();
     TemplateMethodTest.Run();
     Hr();
     CommandPatternTest.Run();
     Hr();
     ObserverPatternTest.Run();
 }