private FormattingContentValidationPass GetPass(RazorCodeDocument codeDocument)
        {
            var mappingService = new DefaultRazorDocumentMappingService();

            var client = Mock.Of <ClientNotifierServiceBase>();
            var pass   = new FormattingContentValidationPass(mappingService, FilePathNormalizer, client, LoggerFactory);

            pass.DebugAssertsEnabled = false;

            return(pass);
        }
        private FormattingContentValidationPass GetPass()
        {
            var mappingService = new DefaultRazorDocumentMappingService(LoggerFactory);

            var client = Mock.Of <ClientNotifierServiceBase>(MockBehavior.Strict);
            var pass   = new FormattingContentValidationPass(mappingService, FilePathNormalizer, client, LoggerFactory)
            {
                DebugAssertsEnabled = false
            };

            return(pass);
        }
        private FormattingContentValidationPass GetPass(RazorCodeDocument codeDocument)
        {
            var mappingService = new DefaultRazorDocumentMappingService();

            var client = new FormattingLanguageServerClient();

            client.AddCodeDocument(codeDocument);
            var languageServer = Mock.Of <ILanguageServer>(ls => ls.Client == client);
            var pass           = new FormattingContentValidationPass(mappingService, FilePathNormalizer, languageServer, LoggerFactory);

            pass.DebugAssertsEnabled = false;

            return(pass);
        }