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(); }
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(); }