public IReadOnlyList <VpnHost> Servers() { return(_guestHoleServers .GetAll() .Select(server => new VpnHost(server.Host, server.Ip)) .OrderBy(s => _random.Next()) .ToList()); }
public void Initialize() { var guestHoleState = new GuestHoleState(); guestHoleState.SetState(true); _guestHoleServers.GetAll().Returns(new List <GuestHoleServerContract>()); _connector = new GuestHoleConnector(_serviceManager, _appSettings, guestHoleState, _config, _guestHoleServers); }
public IReadOnlyCollection <LogicalServerContract> GetAll() { return(_origin.GetAll()); }
public IReadOnlyCollection <T> GetAll() { return(_origin.GetAll()); }