morehaking about

This commit is contained in:
Tom Gardham-Pallister
2017-02-19 12:33:09 +00:00
parent 4dac8cb4fb
commit 816221c7a6
2 changed files with 10 additions and 15 deletions

View File

@ -27,7 +27,7 @@ namespace Ocelot.UnitTests.Configuration
[Fact]
public void can_add_config()
{
this.Given(x => x.GivenTheConfigurationIs(new FakeConfig("initial")))
this.Given(x => x.GivenTheConfigurationIs(new FakeConfig("initial", "adminath")))
.When(x => x.WhenIAddOrReplaceTheConfig())
.Then(x => x.ThenNoErrorsAreReturned())
.BDDfy();
@ -54,7 +54,7 @@ namespace Ocelot.UnitTests.Configuration
private void GivenThereIsASavedConfiguration()
{
GivenTheConfigurationIs(new FakeConfig("initial"));
GivenTheConfigurationIs(new FakeConfig("initial", "adminath"));
WhenIAddOrReplaceTheConfig();
}
@ -77,17 +77,10 @@ namespace Ocelot.UnitTests.Configuration
{
private readonly string _downstreamTemplatePath;
public FakeConfig(string downstreamTemplatePath)
public FakeConfig(string downstreamTemplatePath, string administrationPath)
{
_downstreamTemplatePath = downstreamTemplatePath;
}
public string AdministrationPath
{
get
{
throw new NotImplementedException();
}
AdministrationPath = administrationPath;
}
public List<ReRoute> ReRoutes => new List<ReRoute>
@ -97,6 +90,8 @@ namespace Ocelot.UnitTests.Configuration
.WithUpstreamHttpMethod("Get")
.Build()
};
public string AdministrationPath {get;}
}
}
}