1 write to _accessorMock
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Logging\RequestHeadersEnricherTests.cs (1)
51
_accessorMock
= new Mock<IHttpContextAccessor>(MockBehavior.Strict);
6 references to _accessorMock
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (6)
Logging\RequestHeadersEnricherTests.cs (6)
52
_accessorMock
.SetupGet(r => r.HttpContext).Returns(httpContextMock.Object);
65
var enricher = new RequestHeadersLogEnricher(
_accessorMock
.Object, options.ToOptions(), _redactorProviderMock.Object);
95
var enricher = new RequestHeadersLogEnricher(
_accessorMock
.Object, options.ToOptions(), redactorProviderMock.Object);
125
var enricher = new RequestHeadersLogEnricher(
_accessorMock
.Object, options.ToOptions(), redactorProviderMock.Object);
151
var enricher = new RequestHeadersLogEnricher(
_accessorMock
.Object, options.ToOptions(), _redactorProviderMock.Object);
178
var enricher = new RequestHeadersLogEnricher(
_accessorMock
.Object, options.ToOptions(), _redactorProviderMock.Object);