// testing only internal OneEFWizard(ConfigFileUtils configFileUtils = null, IVsUtils vsUtils = null, IErrorListHelper errorListHelper = null, ModelGenErrorCache errorCache = null, List <KeyValuePair <string, string> > generatedCode = null) { _configFileUtils = configFileUtils; _generatedCode = generatedCode ?? new List <KeyValuePair <string, string> >(); _vsUtils = vsUtils; _errorListHelper = errorListHelper; _errorCache = errorCache; }
// testing only internal OneEFWizard(ConfigFileUtils configFileUtils = null, IVsUtils vsUtils = null, IErrorListHelper errorListHelper = null, ModelGenErrorCache errorCache = null, List<KeyValuePair<string, string>> generatedCode = null) { _configFileUtils = configFileUtils; _generatedCode = generatedCode ?? new List<KeyValuePair<string, string>>(); _vsUtils = vsUtils; _errorListHelper = errorListHelper; _errorCache = errorCache; }
public SyntaxErrorTagger(ITextView textView, BackgroundParser backgroundParser, IErrorListHelper errorListHelper, IOptionsService optionsService) : base(PredefinedErrorTypeNames.SyntaxError, errorListHelper) { optionsService.OptionsChanged += OnOptionsChanged; textView.Closed += (sender, e) => optionsService.OptionsChanged -= OnOptionsChanged; _errorListHelper = errorListHelper; _optionsService = optionsService; backgroundParser.RegisterSyntaxTreeHandler(BackgroundParserHandlerPriority.Low, this); OnOptionsChanged(this, EventArgs.Empty); }
protected ErrorManager(ITextView textView, IOptionsService optionsService, IServiceProvider serviceProvider, ITextDocumentFactoryService textDocumentFactoryService) { _textView = textView; _optionsService = optionsService; optionsService.OptionsChanged += OnOptionsChanged; ITextDocument document; if (textDocumentFactoryService.TryGetTextDocument(textView.TextBuffer, out document)) ErrorListHelper = new ErrorListHelper(serviceProvider, document); textView.Closed += OnViewClosed; OnOptionsChanged(this, EventArgs.Empty); }
protected ErrorManager(ITextView textView, IOptionsService optionsService, IServiceProvider serviceProvider, ITextDocumentFactoryService textDocumentFactoryService) { _textView = textView; _optionsService = optionsService; optionsService.OptionsChanged += OnOptionsChanged; ITextDocument document; if (textDocumentFactoryService.TryGetTextDocument(textView.TextBuffer, out document)) { ErrorListHelper = new ErrorListHelper(serviceProvider, document); } textView.Closed += OnViewClosed; OnOptionsChanged(this, EventArgs.Empty); }
/// <summary> /// This API supports the Entity Framework infrastructure and is not intended to be used directly from your code. /// </summary> public OneEFWizard() { _vsUtils = new VsUtilsWrapper(); _errorListHelper = new ErrorListHelperWrapper(); _errorCache = PackageManager.Package.ModelGenErrorCache; }
protected ErrorTagger(string errorType, IErrorListHelper errorListHelper) { _errorType = errorType; _errorListHelper = errorListHelper; }
protected override void OnTestFixtureSetUp() { _errorListHelper = Substitute.For <IErrorListHelper>(); base.OnTestFixtureSetUp(); }