public async Task TestGetPublicServiceIpAsync_ReturnsIpFromServiceLoadBalancerIngress() { const string expectedIpAddress = "expected-ip-address"; SetupGetJsonOutput( new GkeService { Status = new GkeStatus { LoadBalancer = new GkeLoadBalancer { Ingress = new List <GkeLoadBalancerIngress> { new GkeLoadBalancerIngress { Ip = expectedIpAddress } } } } }); string result = await _objectUnderTest.GetPublicServiceIpAsync(DefaultServiceName); Assert.AreEqual(expectedIpAddress, result); }