public static void TicketSwitcher(TicketContext context, TicketState state, string fileName) { context.ChangeState(state); context.Read(fileName); }