public CorrelationIdHeaderMiddlewareTests() { _innerFunction = Substitute.For <IDummyRequestDelegate>(); _next = async(context) => { _innerFunction.CallMe(context); await Task.CompletedTask; }; _middleware = new CorrelationIdHeaderMiddleware(_next); }
public ExceptionHandlingMiddlewareTests() { _innerFunction = Substitute.For <IDummyRequestDelegate>(); _next = async(context) => { await _innerFunction.CallMe(context); await Task.CompletedTask; }; _middleware = Substitute.ForPartsOf <ExceptionHandlingMiddleware>(_next); }