示例#1
0
        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);
        }
示例#2
0
        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);
        }