public CommandU() { // HelperNameObject nameObject = new HelperNameObject(); abstractF = HelperCreateRep.CreateRepositoryOfPattern();//file actorrep = abstractF.GetRepositoryActor(); clientrep = abstractF.GetRepositoryClient(); ticketrep = abstractF.GetRepositoryTicket(); }
public CommandA() { abstractF = HelperCreateRep.CreateRepositoryOfPattern();//file actorrep = abstractF.GetRepositoryActor(); clientrep = abstractF.GetRepositoryClient(); ticketrep = abstractF.GetRepositoryTicket(); respones = new ResponseFile(); }
static void Main(string[] args) { //ObserverPattern op = new ObserverPattern(); //StrategyPattern sp = new StrategyPattern(); AbstractFactoryPattern afp = new AbstractFactoryPattern(); System.Console.WriteLine("Press any key..."); System.Console.ReadKey(); }
static void Main(string[] args) { Console.WriteLine("Hello Design Patterns!"); //DecoratorPattern.Test(); //StrategyPattern.Test(); //SimpleFactoryPattern.Test(); //FactoryMethodPattern.Test(); AbstractFactoryPattern.Test(); }
public Form1() { InitializeComponent(); abstractF = HelperCreateRep.CreateRepositoryOfPattern();//file actorrep = abstractF.GetRepositoryActor(); clientrep = abstractF.GetRepositoryClient(); ticketrep = abstractF.GetRepositoryTicket(); respones = new ResponseFile(); popCorn = new PopCorn(); }
public Task StartAsync(CancellationToken cancellationToken) { Console.WriteLine(_configuration["Logging:LogLevel:Default"]); IDesignPattern specificationPattern = new SpecificationPattern(); specificationPattern.ExecuteSample(); IDesignPattern factoryMethod = new FactoryMethodPattern(); factoryMethod.ExecuteSample(); IDesignPattern singletonPattern = new SingletonPattern(); singletonPattern.ExecuteSample(); IDesignPattern commandPattern = new CommandPattern(); commandPattern.ExecuteSample(); IDesignPattern chainOfResponsibilityPattern = new ChainOfResponsibilityPattern(); chainOfResponsibilityPattern.ExecuteSample(); IDesignPattern decoratorPattern = new DecoratorPattern(); decoratorPattern.ExecuteSample(); IDesignPattern strategyPattern = new StrategyPattern(); strategyPattern.ExecuteSample(); IDesignPattern abstractFactoryPattern = new AbstractFactoryPattern(); abstractFactoryPattern.ExecuteSample(); IDesignPattern compositePattern = new CompositePattern(); compositePattern.ExecuteSample(); IDesignPattern bridgePattern = new BridgePattern(); bridgePattern.ExecuteSample(); IDesignPattern observerPattern = new ObserverPattern(); observerPattern.ExecuteSample(); IDesignPattern statePattern = new StatePattern(); statePattern.ExecuteSample(); IDesignPattern mediatorPattern = new MediatorPattern(); mediatorPattern.ExecuteSample(); IDesignPattern visitorPattern = new VisitorPattern(); visitorPattern.ExecuteSample(); IDesignPattern momentoPattern = new MomentoPattern(); momentoPattern.ExecuteSample(); return(Task.CompletedTask); }