public ActivityAuditMiddleware(OwinMiddleware next, IAuditService auditService, ErrorResponseProcessor processor, IAntService antService) : base(next) { _processor = processor.ThrowIfNull(nameof(processor)); _auditService = auditService.ThrowIfNull(nameof(auditService)); _excludePaths = antService.GetAntPaths(ConfigurationManager.AppSettings["ActionLoggingExcludePaths"]?.Split(',')); }
public ErrorResponseProcessorTests() { _mockStream = Mock.Create <Stream>(); _mockResponse = Mock.Create <IOwinResponse>(); _mockResponse.Setup(_ => _.Body).Returns(_mockStream.Object); _processor = new ErrorResponseProcessor(); }