public ExpansionClient(ITextView textView, ITextBuffer textBuffer, IVsExpansionManager expansionManager, IExpansionsCache cache) { TextView = textView; TextBuffer = textBuffer; _expansionManager = expansionManager; _cache = cache; }
public ExpansionClient(ITextView textView, ITextBuffer textBuffer, IVsExpansionManager expansionManager, IExpansionsCache cache, IServiceContainer services) { TextView = textView; TextBuffer = textBuffer; _expansionManager = expansionManager; _cache = cache; _services = services; }
public ExpansionsTest(IServiceContainer services) { _services = services; _expansionManager = Substitute.For <IVsExpansionManager>(); _cache = Substitute.For <IExpansionsCache>(); _cache.GetExpansion("if").Returns(new VsExpansion { description = "if statement", path = "path", shortcut = "if", title = "if statement" }); }
public ExpansionsTest() { _expansionManager = Substitute.For<IVsExpansionManager>(); _cache = Substitute.For<IExpansionsCache>(); _cache.GetExpansion("if").Returns(new VsExpansion() { description = "if statement", path = "path", shortcut = "if", title = "if statement" }); TextBufferUtilities.AdaptersFactoryService = new VsEditorAdaptersFactoryServiceMock(); }
public ExpansionsTest() { _expansionManager = Substitute.For <IVsExpansionManager>(); _cache = Substitute.For <IExpansionsCache>(); _cache.GetExpansion("if").Returns(new VsExpansion() { description = "if statement", path = "path", shortcut = "if", title = "if statement" }); TextBufferUtilities.AdaptersFactoryService = new VsEditorAdaptersFactoryServiceMock(); }
public ExpansionsController(ITextView textView, ITextBuffer textBuffer, IVsExpansionManager expansionManager, IExpansionsCache cache) { _textView = textView; _textBuffer = textBuffer; _expansionClient = new ExpansionClient(textView, textBuffer, expansionManager, cache); }
public ExpansionsController(ITextView textView, ITextBuffer textBuffer, IVsExpansionManager expansionManager, IExpansionsCache cache, IServiceContainer services) { _textView = textView; _expansionClient = new ExpansionClient(textView, textBuffer, expansionManager, cache, services); _services = services; }