public Client_to_Server()
        {
            var logger = new LoggerFactory()
                         .AddConsole()
                         .CreateLogger <Client_to_Server>();

            _serverMock = new ServerImplementationMock();
            _server     = new GcServer(_serverMock, logger).Start(500);

            _connection = TestUtils.CreateMockConnection(_serverMock);
        }
Exemple #2
0
        public Relay()
        {
            var logger = new LoggerFactory()
                         .AddConsole()
                         .CreateLogger <Client_to_Server>();

            _serverAMock = new ServerImplementationMock();
            _serverBMock = new ServerImplementationMock();
            _serverCMock = new ServerImplementationMock();

            _serverA = new GcServer(_serverAMock, logger);
            _serverB = new GcServer(_serverBMock, logger);
            _serverC = new GcServer(_serverCMock, logger);
        }