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); 65var enricher = new RequestHeadersLogEnricher(_accessorMock.Object, options.ToOptions(), _redactorProviderMock.Object); 95var enricher = new RequestHeadersLogEnricher(_accessorMock.Object, options.ToOptions(), redactorProviderMock.Object); 125var enricher = new RequestHeadersLogEnricher(_accessorMock.Object, options.ToOptions(), redactorProviderMock.Object); 151var enricher = new RequestHeadersLogEnricher(_accessorMock.Object, options.ToOptions(), _redactorProviderMock.Object); 178var enricher = new RequestHeadersLogEnricher(_accessorMock.Object, options.ToOptions(), _redactorProviderMock.Object);