Esempio n. 1
0
 public void Initialize()
 {
     server = new MockServer();
     clock  = new MockClock();
     client = new Client("127.0.0.1", server.Port, clock);
     source = new CancellationTokenSource();
 }
Esempio n. 2
0
 public void Initialize()
 {
     server             = new Server("1.2.3.4", 5678);
     clock              = new MockClock();
     clock.CurrentTime += TimeSpan.FromSeconds(100);
     masterServerClient = new MockClient();
     serverInfoClient   = new MockClient();
     clientFactory      = new MockClientFactory(masterServerClient);
     clientFactory.AddClient(serverInfoClient);
     monitor = new Monitor(clock, clientFactory, new MockLogger());
 }
Esempio n. 3
0
 public void Initialize()
 {
     server = new MockServer();
     clock  = new MockClock();
     client = new Client("127.0.0.1", server.Port, clock);
 }