public static void Test() { var turnstile = new Turnstile(); turnstile.Enter(); turnstile.Pay(); }
public void Pay() { Console.WriteLine($"Processing payment"); Turnstile.ChangeState(new ProcessingTurnstileState(Turnstile)); Turnstile.Pay(); }