7 references to Middleware
Microsoft.AspNetCore.Http.Abstractions.Tests (7)
UseMiddlewareTest.cs (7)
216var exception = Assert.Throws<NotSupportedException>(() => builder.UseMiddleware(typeof(Middleware), "arg")); 225builder.UseMiddleware(typeof(Middleware)); 242builder.UseMiddleware(typeof(Middleware)); 256typeof(Middleware)), 265builder.UseMiddleware(typeof(Middleware)); 277Assert.IsType<Middleware>(middlewareFactory.Created); 278Assert.IsType<Middleware>(middlewareFactory.Released);