Skip to content

Commit

Permalink
Fixed unit test that was broken from last round of changes in OWIN in…
Browse files Browse the repository at this point in the history
…tegration.
  • Loading branch information
alexmg committed Apr 22, 2014
1 parent 3a656f6 commit 2cc0acb
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Security;
using System.Collections.Generic;
using System.Security;
using System.Threading.Tasks;
using Autofac.Integration.Owin;
using Microsoft.Owin;
Expand All @@ -19,9 +20,10 @@ public void UseAutofacMiddlewareAddsWrappedMiddlewareInstancesToAppBuilder()
builder.RegisterType<TestMiddleware>();
var container = builder.Build();
var app = new Mock<IAppBuilder>();
app.Setup(mock => mock.Properties).Returns(new Dictionary<string, object>());
app.Setup(mock => mock.Use(typeof(AutofacMiddleware<TestMiddleware>)));

app.Object.UseAutofacMiddleware(container);
OwinExtensions.UseAutofacMiddleware(app.Object, container);

app.VerifyAll();
}
Expand Down

0 comments on commit 2cc0acb

Please sign in to comment.