Ejemplo n.º 1
0
            /// <summary>
            /// Entry point into console application.
            /// </summary>
            static void Main()
            {
                var turnstile = new Turnstile(new TurnstileController());

                turnstile.HandleEvent(Event.Coin);
                turnstile.HandleEvent(Event.Coin);
                turnstile.HandleEvent(Event.Pass);
                turnstile.HandleEvent(Event.Pass);



                // Wait for user
                Console.ReadLine();
            }