public void SetUp() { now = DateTime.Now; view = new MockView(); context = new ClockInContext(view); timeSource = new PseudoTimeSource(now); context.TimeSource = timeSource; context.AddUser("neo", "whiterabbit"); }
public static void Main(string[] args) { ClockInWindow window = new ClockInWindow(); ClockInContext context = new ClockInContext(window); window.LoginListener = context; context.AddUser("wallace", "cheese"); context.AddUser("grommit", "nomorepenguins"); Application.Run(window); }
public override void DoTable(Parse table) { view = new MockView(); appContext = new ClockInContext(view); }