We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc0a25a commit 804f6d5Copy full SHA for 804f6d5
test/UnitTest/Services/IpLocatorTest.cs
@@ -68,6 +68,9 @@ public void Factory_Ok()
68
Assert.NotNull(factory.Create("BaiduIpLocatorProviderV2"));
69
Assert.NotNull(factory.Create("BaiduIpLocatorProvider"));
70
Assert.NotNull(factory.Create());
71
+
72
+ Assert.NotNull(Context.Services.GetKeyedService<IIpLocatorProvider>("BaiduIpLocatorProvider"));
73
+ Assert.NotNull(Context.Services.GetKeyedService<IIpLocatorProvider>("BaiduIpLocatorProviderV2"));
74
}
75
76
[Fact]
0 commit comments