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