React to options

This commit is contained in:
Hao Kung 2015-09-02 14:02:01 -07:00
parent 7dbe5dfbe4
commit 74fe851f54
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ namespace Microsoft.AspNet.Hosting.Tests
app.ApplicationServices = startup.ConfigureServicesDelegate(new ServiceCollection());
startup.ConfigureDelegate(app);
var options = app.ApplicationServices.GetRequiredService<IOptions<FakeOptions>>().Options;
var options = app.ApplicationServices.GetRequiredService<IOptions<FakeOptions>>().Value;
Assert.NotNull(options);
Assert.True(options.Configured);
Assert.Equal(environment, options.Environment);