示例#1
0
 public void Verify(IPay pay)
 {
     if (pay.IsPayed() == 1)
     {
         Console.ForegroundColor = ConsoleColor.Green;
         Console.WriteLine("Allowed");
     }
     else
     {
         Console.ForegroundColor = ConsoleColor.Red;
         Console.WriteLine("Forbidden");
     }
     Console.ForegroundColor = ConsoleColor.White;
 }