private FormattingDiagnosticValidationPass GetPass(RazorCodeDocument codeDocument) { var mappingService = new DefaultRazorDocumentMappingService(); var client = Mock.Of <ClientNotifierServiceBase>(); var pass = new FormattingDiagnosticValidationPass(mappingService, FilePathNormalizer, client, LoggerFactory); pass.DebugAssertsEnabled = false; return(pass); }
private FormattingDiagnosticValidationPass GetPass() { var mappingService = new DefaultRazorDocumentMappingService(LoggerFactory); var client = Mock.Of <ClientNotifierServiceBase>(MockBehavior.Strict); var pass = new FormattingDiagnosticValidationPass(mappingService, FilePathNormalizer, client, LoggerFactory) { DebugAssertsEnabled = false }; return(pass); }