public string GetLocalDatacenter() { if (localDatacenter != null) { return(localDatacenter); } if (localHostname != null) { var d = GetDatacenter(localHostname); if (d != null) { return(d); } } return(LocalNetworksProvider .Get() .Select(GetDatacenter) .FirstOrDefault(datacenter => datacenter != null)); }
public void Should_locate_something() { LocalNetworksProvider.Get().Should().NotBeEmpty(); }