Пример #1
0
        static void Main(string[] args)
        {
            Context context = new Context();

            context.SetState(new StartState(context));
            context.DoAction();
            context.SetState(new StopState(context));
            context.DoAction();
        }