public async Task Start_ShouldLaunch_NetInitEvent()
        {
            NetworkInitializedEvent eventData = null;

            _eventBus.Subscribe <NetworkInitializedEvent>(ed =>
            {
                eventData = ed;
                return(Task.CompletedTask);
            });

            await _networkServer.StartAsync();

            await _networkServer.StopAsync();

            eventData.ShouldNotBeNull();
        }
        public async Task StartServer_Test()
        {
            NetworkInitializedEvent received = null;

            _eventBus.Subscribe <NetworkInitializedEvent>(a =>
            {
                received = a;
                return(Task.CompletedTask);
            });

            await _networkServer.StartAsync();

            received.ShouldNotBeNull();

            await _networkServer.StopAsync();
        }
        public async Task StartServer_Test()
        {
            NetworkInitializedEvent received = null;

            _eventBus.Subscribe <NetworkInitializedEvent>(a =>
            {
                received = a;
                return(Task.CompletedTask);
            });

            await _networkServer.StartAsync();

            received.ShouldNotBeNull();

            var reconnections = _reconnectionService.GetPeersReadyForReconnection(null);

            reconnections.Count.ShouldBe(1);
            reconnections.First().Endpoint.ShouldBe("127.0.0.1:2018");

            await _networkServer.StopAsync();
        }