Reacted to options and hosting changes after rebase.

This commit is contained in:
NTaylorMullen 2014-10-14 22:13:03 -07:00 committed by Doug Bunting
parent 3b7b0f867d
commit 20cc294c70
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ namespace TagHelperSample.Web
{
public void Configure(IApplicationBuilder app)
{
app.UsePerRequestServices(services => services.AddMvc());
app.UseServices(services => services.AddMvc());
app.UseMvc();
}
}

View File

@ -94,7 +94,7 @@ namespace Microsoft.AspNet.Mvc.TagHelpers
private static AntiForgery GetAntiForgery()
{
// AntiForgery must be passed to TestableHtmlGenerator constructor but will never be called.
var optionsAccessor = new Mock<IOptionsAccessor<MvcOptions>>();
var optionsAccessor = new Mock<IOptions<MvcOptions>>();
optionsAccessor
.SetupGet(o => o.Options)
.Returns(new MvcOptions());