@@ -373,8 +373,8 @@ public void UpdateSettingsFromDiscovery_UpdatesSettingsCorrectly()
373373
374374 List < IServiceInstance > instances =
375375 [
376- new TestServiceInstance ( "i1" , new Uri ( "https://foo.bar:8888/" ) , metadata1 ) ,
377- new TestServiceInstance ( "i2" , new Uri ( "https://foo.bar.baz:9999/" ) , metadata2 )
376+ new TestServiceInstance ( "s" , " i1", new Uri ( "https://foo.bar:8888/" ) , metadata1 ) ,
377+ new TestServiceInstance ( "s" , " i2", new Uri ( "https://foo.bar.baz:9999/" ) , metadata2 )
378378 ] ;
379379
380380 provider . UpdateSettingsFromDiscovery ( instances , options ) ;
@@ -416,9 +416,10 @@ private static string GetEncodedUserPassword(string user, string password)
416416 return Convert . ToBase64String ( Encoding . ASCII . GetBytes ( $ "{ user } :{ password } ") ) ;
417417 }
418418
419- private sealed class TestServiceInstance ( string serviceId , Uri uri , IReadOnlyDictionary < string , string ? > metadata ) : IServiceInstance
419+ private sealed class TestServiceInstance ( string serviceId , string instanceId , Uri uri , IReadOnlyDictionary < string , string ? > metadata ) : IServiceInstance
420420 {
421421 public string ServiceId { get ; } = serviceId ;
422+ public string InstanceId { get ; } = instanceId ;
422423 public string Host { get ; } = uri . Host ;
423424 public int Port { get ; } = uri . Port ;
424425 public bool IsSecure { get ; } = uri . Scheme == Uri . UriSchemeHttps ;
0 commit comments