Exemplo n.º 1
0
        private TypeScript.EslintBridgeClient.EslintBridgeClient CreateTestSubject(IEslintBridgeHttpWrapper httpWrapper         = null,
                                                                                   IAnalysisConfiguration analysisConfiguration = null)
        {
            analysisConfiguration ??= Mock.Of <IAnalysisConfiguration>();

            return(new TypeScript.EslintBridgeClient.EslintBridgeClient(BaseServerUri, httpWrapper, analysisConfiguration));
        }
 internal EslintBridgeClient(Uri baseServerUri,
                             IEslintBridgeHttpWrapper httpWrapper,
                             IAnalysisConfiguration analysisConfiguration)
 {
     this.baseServerUri         = baseServerUri;
     this.httpWrapper           = httpWrapper;
     this.analysisConfiguration = analysisConfiguration;
 }
        private TypeScript.EslintBridgeClient.EslintBridgeClient CreateTestSubject(IEslintBridgeHttpWrapper httpWrapper         = null,
                                                                                   IAnalysisConfiguration analysisConfiguration = null,
                                                                                   IEslintBridgeProcess eslintBridgeProcess     = null)
        {
            analysisConfiguration ??= Mock.Of <IAnalysisConfiguration>();
            eslintBridgeProcess ??= SetupServerProcess().Object;

            return(new TypeScript.EslintBridgeClient.EslintBridgeClient(AnalyzeEndpoint, eslintBridgeProcess, httpWrapper, analysisConfiguration));
        }
Exemplo n.º 4
0
 internal EslintBridgeClient(string analyzeEndpoint,
                             IEslintBridgeProcess eslintBridgeProcess,
                             IEslintBridgeHttpWrapper httpWrapper,
                             IAnalysisConfiguration analysisConfiguration)
 {
     this.analyzeEndpoint       = analyzeEndpoint;
     this.eslintBridgeProcess   = eslintBridgeProcess;
     this.httpWrapper           = httpWrapper;
     this.analysisConfiguration = analysisConfiguration;
 }