public void SetUp()
		{
			now = DateTime.Now;
			view = new MockView();
			context = new ClockInContext(view);
			timeSource = new PseudoTimeSource(now);
			context.TimeSource = timeSource;
			context.AddUser("neo", "whiterabbit");
		}
Esempio n. 2
0
		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);
		}
Esempio n. 3
0
		public override void DoTable(Parse table)
		{
			view = new MockView();
			appContext = new ClockInContext(view);
		}