Esempio n. 1
0
        public RuntimeCoordinatorService(
            IEnvironmentService environment,
            IInputEvaluationService evaluator,
            ICommandManagementService commandManagement,
            IResultProcessingService resultProcessing,
            IViewService view,
            IActionManagementService actionManagement,
            IInputHistoryService history,
            IIntellisenseService intellisense,
            IDidYouMeanService didYouMean,
            IFallbackService fallback,
            ILogService logger)
        {
            this.environment       = environment ?? throw new ArgumentNullException(nameof(environment));
            this.evaluator         = evaluator ?? throw new ArgumentNullException(nameof(evaluator));
            this.commandManagement = commandManagement ?? throw new ArgumentNullException(nameof(commandManagement));
            this.resultProcessing  = resultProcessing ?? throw new ArgumentNullException(nameof(resultProcessing));
            this.view             = view ?? throw new ArgumentNullException(nameof(view));
            this.actionManagement = actionManagement ?? throw new ArgumentNullException(nameof(actionManagement));

            this.logger       = logger;
            this.history      = history;
            this.intellisense = intellisense;
            this.didYouMean   = didYouMean;
            this.fallback     = fallback;
        }
Esempio n. 2
0
        public void Initialize()
        {
            _gateFactory       = A.Fake <IGateFactory>();
            _fallbackService   = A.Fake <IFallbackService>();
            _httpClientFactory = A.Fake <IHttpClientFactory>();
            var logger = A.Fake <ILogger <SubscriberService> >();

            _toTest = new SubscriberService(_gateFactory, new List <IFallbackService>
            {
                _fallbackService
            }, _httpClientFactory, logger);
        }
        public DotnetIntellisenseProvider(IFallbackService fallback)
        {
            this.fallback = fallback ?? throw new ArgumentNullException(nameof(fallback));
            cache         = new IntellisenseCache();

            commandsToCache = new HashSet <string>(
                new string[] {
                "dotnet ", "dotnet clean ", "dotnet restore ", "dotnet build ",
                "dotnet msbuild ", "dotnet build-server ", "dotnet run ",
                "dotnet test ", "dotnet vstest ",
                "dotnet pack ", "dotnet publish "
            },
                StringComparer.OrdinalIgnoreCase);
        }
Esempio n. 4
0
 public TexoEngineBuilder WithFallbackService(IFallbackService service)
 {
     fallback = service;
     return(this);
 }