got sidetracked and downgraded to .net core app 1.1 that actually exists no idea why i had 1.4 :(

This commit is contained in:
TomPallister
2017-02-04 12:06:33 +00:00
parent 9c9315a94f
commit 7900aa3f49
9 changed files with 73 additions and 37 deletions

View File

@ -4,14 +4,12 @@
public static class TestConfiguration
{
public static double Version => 1.4;
public static double Version => 1.1;
public static string ConfigurationPath => GetConfigurationPath();
public static string GetConfigurationPath()
{
var osArchitecture = RuntimeInformation.OSArchitecture.ToString();
var oSDescription = string.Empty;
if(RuntimeInformation.OSDescription.ToLower().Contains("darwin"))
{

View File

@ -40,7 +40,7 @@
"win7-x64": {}
},
"frameworks": {
"netcoreapp1.4": {
"netcoreapp1.1": {
"imports": [
]
}

View File

@ -6,7 +6,7 @@
"dependencies": {
"Ocelot": "0.0.0-dev",
"BenchmarkDotNet": "0.10.1"
"BenchmarkDotNet": "0.10.2"
},
"runtimes": {
"win10-x64": {},
@ -14,7 +14,7 @@
"win7-x64": {}
},
"frameworks": {
"netcoreapp1.4": {
"netcoreapp1.1": {
"imports": [
]
}

View File

@ -24,7 +24,7 @@
"win7-x64": {}
},
"frameworks": {
"netcoreapp1.4": {
"netcoreapp1.1": {
"imports": [
]
}

View File

@ -27,6 +27,17 @@ namespace Ocelot.UnitTests.ServiceDiscovery
.BDDfy();
}
[Fact]
public void should_return_consul_service_provider()
{
var serviceConfig = new ServiceProviderConfiguraion("product", string.Empty, 0, true, "Consul");
this.Given(x => x.GivenTheReRoute(serviceConfig))
.When(x => x.WhenIGetTheServiceProvider())
.Then(x => x.ThenTheServiceProviderIs<ConsulServiceDiscoveryProvider>())
.BDDfy();
}
private void GivenTheReRoute(ServiceProviderConfiguraion serviceConfig)
{
_serviceConfig = serviceConfig;

View File

@ -32,7 +32,7 @@
"win7-x64": {}
},
"frameworks": {
"netcoreapp1.4": {
"netcoreapp1.1": {
"imports": [
]
}