mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-12-17 13:55:49 +08:00
Add ability to specify scheme of ServiceProviderConfiguration
This commit is contained in:
@@ -26,6 +26,7 @@ namespace Ocelot.UnitTests.Configuration
|
||||
{
|
||||
ServiceDiscoveryProvider = new FileServiceDiscoveryProvider
|
||||
{
|
||||
Scheme = "https",
|
||||
Host = "127.0.0.1",
|
||||
Port = 1234,
|
||||
Type = "ServiceFabric",
|
||||
@@ -36,6 +37,7 @@ namespace Ocelot.UnitTests.Configuration
|
||||
};
|
||||
|
||||
var expected = new ServiceProviderConfigurationBuilder()
|
||||
.WithScheme("https")
|
||||
.WithHost("127.0.0.1")
|
||||
.WithPort(1234)
|
||||
.WithType("ServiceFabric")
|
||||
@@ -62,6 +64,7 @@ namespace Ocelot.UnitTests.Configuration
|
||||
|
||||
private void ThenTheConfigIs(ServiceProviderConfiguration expected)
|
||||
{
|
||||
_result.Scheme.ShouldBe(expected.Scheme);
|
||||
_result.Host.ShouldBe(expected.Host);
|
||||
_result.Port.ShouldBe(expected.Port);
|
||||
_result.Token.ShouldBe(expected.Token);
|
||||
|
||||
Reference in New Issue
Block a user