public void WhenInstalled_ThenCanResolveBar() { AppConfigurationBuilder.WithApplicationSetting("FoobarSettings:Bar:Name", "SomeBarName"); var result = CreateSut().GetService <FoobarSettings>(); Assert.That(result.Bar.Name, Is.EqualTo("SomeBarName")); }
public void WhenInstalled_ThenCanResolveFoobarSettings() { AppConfigurationBuilder.WithApplicationSetting("FoobarSettings:FoobarUrl", FoobarUrl); var result = CreateSut().GetService <FoobarSettings>(); Assert.That(result.FoobarUrl, Is.EqualTo(FoobarUrl)); }