public void Setup()
        {
            Host = "localhost";
            MessageSerializer       = new JsonMessageSerializer();
            MessageProcessor        = new MessageProcessorMock(MessageSerializer);
            MessageTypeCacheFactory = new MessageTypeCacheFactory();
            List <Type> types = new List <Type>
            {
                typeof(TestRequestMessage)
            };

            MessageTypeCache = MessageTypeCacheFactory.Create(types);
        }
        public void Setup()
        {
            Host = "localhost";
            MessageSerializer       = new JsonMessageSerializer();
            MessageProcessor        = new MessageProcessorMock(MessageSerializer);
            MessageTypeCacheFactory = new MessageTypeCacheFactory();
            List <Type> types = new List <Type>
            {
                typeof(RegisterRequest), typeof(CreateTrainingRoomRequest)
            };

            MessageTypeCache = MessageTypeCacheFactory.Create(types);
            IServiceProvider serviceProvider = new ServiceCollection().AddLogging(builder => builder.AddConsole()).BuildServiceProvider();
            ILoggerFactory   factory         = serviceProvider.GetService <ILoggerFactory>();

            Logger = factory.CreateLogger <TcpNetworkConnector>();
        }