1 implementation of ISelectionService
System.Windows.Forms.Design (1)
System\ComponentModel\Design\SelectionService.cs (1)
18internal sealed class SelectionService : ISelectionService, IDisposable
386 references to ISelectionService
DesignSurface (6)
MainForm.cs (6)
16private ISelectionService _selectionService; 54_selectionService = (ISelectionService)(isurf.GetIDesignerHost().GetService(typeof(ISelectionService))); 69ISelectionService selectionService = isurf.GetIDesignerHost().GetService(typeof(ISelectionService)) as ISelectionService;
netstandard (1)
netstandard.cs (1)
268[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.ISelectionService))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
254[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.ISelectionService))]
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\ISelectionService.cs (1)
24/// Adds a <see cref='System.ComponentModel.Design.ISelectionService.SelectionChanged'/> event handler to the selection service.
System.Windows.Forms (12)
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (1)
296|| !site.TryGetService(out ISelectionService? selectionService)
System\Windows\Forms\ActiveX\AxHost.cs (4)
826if (Site.TryGetService(out ISelectionService? selectionService)) 854if (Site.TryGetService(out ISelectionService? selectionService)) 969if (IsUserMode() || !Site.TryGetService(out ISelectionService? selectionService)) 2392if (Site.TryGetService(out ISelectionService? selectionService) && selectionService.GetComponentSelected(this))
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (4)
729ISelectionService? iss = WebBrowserHelper.GetSelectionService(this); 750ISelectionService? iss = WebBrowserHelper.GetSelectionService(this); 765ISelectionService? iss = WebBrowserHelper.GetSelectionService(this); 1048ISelectionService? iss = WebBrowserHelper.GetSelectionService(this);
System\Windows\Forms\Controls\WebBrowser\WebBrowserHelper.cs (3)
92internal static ISelectionService? GetSelectionService(Control ctl) 97ISelectionService? selectionService = site.GetService<ISelectionService>();
System.Windows.Forms.Design (254)
System\ComponentModel\Design\ComponentDesigner.cs (1)
251|| !TryGetService(out ISelectionService? selectionService))
System\ComponentModel\Design\DesignerActionService.cs (2)
20private readonly ISelectionService? _selectionService; // selection service 44_selectionService = serviceProvider.GetService<ISelectionService>();
System\ComponentModel\Design\DesignerActionUI.cs (2)
26private ISelectionService _selectionService; // used to determine if comps have selection or not 58!serviceProvider.TryGetService(out ISelectionService? selectionService))
System\ComponentModel\Design\DesignerEventService.cs (3)
106if (comp.Site.TryGetService(out ISelectionService? ss) && ss.GetComponentSelected(comp)) 237ISelectionService? ss = provider.GetService<ISelectionService>();
System\ComponentModel\Design\DesignerHost.cs (5)
708ISelectionService? selectionService = (ISelectionService?)GetService(typeof(ISelectionService)); 1137if (successful && _savedSelection is not null && this.TryGetService(out ISelectionService? ss)) 1171if (this.TryGetService(out ISelectionService? ss))
System\ComponentModel\Design\DesignSurface.cs (2)
38ServiceContainer.AddService<ISelectionService>(callback); 409if (serviceType == typeof(ISelectionService))
System\ComponentModel\Design\MenuCommandService.cs (1)
24private ISelectionService? _selectionService;
System\ComponentModel\Design\SelectionService.cs (10)
300object? ISelectionService.PrimarySelection => PrimarySelection; 305int ISelectionService.SelectionCount => _selection?.Count ?? 0; 308/// Adds a <see cref="ISelectionService.SelectionChanged"/> event handler to the selection service. 310event EventHandler ISelectionService.SelectionChanged 320event EventHandler ISelectionService.SelectionChanging 330bool ISelectionService.GetComponentSelected(object component) 339ICollection ISelectionService.GetSelectedComponents() 350void ISelectionService.SetSelectedComponents(ICollection? components) 351=> ((ISelectionService)this).SetSelectedComponents(components, SelectionTypes.Auto); 357void ISelectionService.SetSelectedComponents(ICollection? components, SelectionTypes selectionType)
System\ComponentModel\Design\ToolStripContainerActionList.cs (2)
214ISelectionService? selectionService = _serviceProvider?.GetService<ISelectionService>();
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (2)
32if (UndoEngine.TryGetService(out ISelectionService? ss)) 470if (UndoEngine.TryGetService(out ISelectionService? ss))
System\Windows\Forms\Design\BaseContextMenuStrip.cs (3)
83if (_serviceProvider.GetService(typeof(ISelectionService)) is ISelectionService selectionService && _serviceProvider.GetService(typeof(IDesignerHost)) is IDesignerHost host) 321if (_comp is not null && _serviceProvider.TryGetService(out ISelectionService? selectionService))
System\Windows\Forms\Design\Behavior\ContainerSelectorBehavior.cs (6)
94ISelectionService selSvc = (ISelectionService)_serviceProvider.GetService(typeof(ISelectionService)); 206ISelectionService selSvc = (ISelectionService)_serviceProvider.GetService(typeof(ISelectionService));
System\Windows\Forms\Design\Behavior\DesignerActionBehavior.cs (1)
122if (_serviceProvider.TryGetService(out ISelectionService? selectionService) &&
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (3)
350ISelectionService selSvc = null; 353selSvc = (ISelectionService)_serviceProviderTarget.GetService(typeof(ISelectionService));
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (3)
312ISelectionService selSvc = (ISelectionService)_serviceProvider.GetService(typeof(ISelectionService));
System\Windows\Forms\Design\Behavior\SelectionManager.cs (2)
24private ISelectionService _selectionService; 49_selectionService = serviceProvider.GetRequiredService<ISelectionService>();
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (3)
95ISelectionService selSvc = _serviceProvider.GetService(typeof(ISelectionService)) as ISelectionService;
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (6)
65ISelectionService selection = _serviceProvider.GetRequiredService<ISelectionService>(); 101ISelectionService selectionService = _serviceProvider.GetRequiredService<ISelectionService>(); 140ISelectionService selectionService = _serviceProvider.GetRequiredService<ISelectionService>();
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (2)
89if (_provider.GetService(typeof(ISelectionService)) is ISelectionService selSvc)
System\Windows\Forms\Design\CommandSet.cs (4)
200SelectionService = site.GetService<ISelectionService>(); 240protected ISelectionService? SelectionService { get; private set; } 2995&& TryGetService(out ISelectionService? selSvc)) 3049if (TryGetService(out ISelectionService? selSvc))
System\Windows\Forms\Design\ComponentTray.cs (29)
160ISelectionService selSvc = (ISelectionService)GetService(typeof(ISelectionService)); 240_selectedObjects = ((ISelectionService)sender).GetSelectedComponents(); 241object primary = ((ISelectionService)sender).PrimarySelection; 656ISelectionService selectionService = (ISelectionService)GetService(typeof(ISelectionService)); 1273ISelectionService ss = (ISelectionService)GetService(typeof(ISelectionService)); 1360ISelectionService ss = (ISelectionService)GetService(typeof(ISelectionService)); 2122ISelectionService sel = (ISelectionService)_tray.GetService(typeof(ISelectionService)); 2168ISelectionService sel = (ISelectionService)_tray.GetService(typeof(ISelectionService)); 2212ISelectionService sel = (ISelectionService)_tray.GetService(typeof(ISelectionService)); 2246ISelectionService s = (ISelectionService)_tray.GetService(typeof(ISelectionService)); 2586ISelectionService s = (ISelectionService)_tray.GetService(typeof(ISelectionService));
System\Windows\Forms\Design\ControlCommandSet.cs (4)
516ISelectionService selSvc = SelectionService; 941ISelectionService selSvc = SelectionService; 1367ISelectionService selSvc = SelectionService; 1435ISelectionService selSvc = SelectionService;
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (4)
16private ISelectionService? _selectionService; 38private ISelectionService? SelectionService => _selectionService ??= _designer.GetService<ISelectionService>(); 45ISelectionService? s = SelectionService;
System\Windows\Forms\Design\ControlDesigner.cs (6)
700if (TryGetService(out ISelectionService? sel) && sel.GetComponentSelected(Control)) 1310if (!_ctrlSelect && TryGetService(out ISelectionService? selectionService)) 1331ISelectionService? selectionService = GetService<ISelectionService>(); 1401if (TryGetService(out ISelectionService? selectionService) && !Component.Equals(selectionService.PrimarySelection)) 1927GetService<ISelectionService>()?.SetSelectedComponents(
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (2)
17private ISelectionService? _selectionService; 144_selectionService = GetService<ISelectionService>();
System\Windows\Forms\Design\DesignerFrame.cs (2)
118ISelectionService? selSvc = _designerSite.GetService<ISelectionService>();
System\Windows\Forms\Design\DocumentDesigner.cs (13)
402ISelectionService ss = (ISelectionService)GetService(typeof(ISelectionService)); 589ISelectionService s = (ISelectionService)GetService(typeof(ISelectionService)); 972ISelectionService selSvc = (ISelectionService)GetService(typeof(ISelectionService)); 1111ISelectionService ss = (ISelectionService)GetService(typeof(ISelectionService)); 1148if (!TryGetService(out ISelectionService svc))
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (2)
125internal ISelectionService SelectionService => GetService<ISelectionService>();
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObject.cs (1)
88if (!_serviceProvider.TryGetService(out ISelectionService? selectionService))
System\Windows\Forms\Design\OleDragDropHandler.cs (3)
256if (TryGetService(out ISelectionService? selSvc) && comps.Length > 0) 821ISelectionService selService = GetService<ISelectionService>()!;
System\Windows\Forms\Design\ParentControlDesigner.cs (12)
471ISelectionService selSvc = (ISelectionService)GetService(typeof(ISelectionService)); 1633ISelectionService sel = (ISelectionService)GetService(typeof(ISelectionService)); 1732ISelectionService selsvc = (ISelectionService)GetService(typeof(ISelectionService)); 1883var selSvc = (ISelectionService)GetService(typeof(ISelectionService));
System\Windows\Forms\Design\SelectionUIService.cs (2)
52private readonly ISelectionService? _selSvc; 72_selSvc = host.GetService<ISelectionService>();
System\Windows\Forms\Design\SplitContainerDesigner.cs (5)
173if (TryGetService(out ISelectionService? svc)) 250if (TryGetService(out ISelectionService? svc)) 283var svc = GetRequiredService<ISelectionService>(); 401if (!TryGetService(out ISelectionService? svc))
System\Windows\Forms\Design\StandardMenuStripVerb.cs (6)
245ISelectionService selSvc = (ISelectionService)_provider.GetService(typeof(ISelectionService)); 389ISelectionService selSvc = (ISelectionService)_provider.GetService(typeof(ISelectionService));
System\Windows\Forms\Design\TabControlDesigner.cs (12)
146ISelectionService svc = (ISelectionService)GetService(typeof(ISelectionService)); 217ISelectionService svc = (ISelectionService)GetService(typeof(ISelectionService)); 400ISelectionService svc = (ISelectionService)GetService(typeof(ISelectionService)); 435ISelectionService svc = (ISelectionService)GetService(typeof(ISelectionService));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (9)
617ISelectionService selSvc = GetService(typeof(ISelectionService)) as ISelectionService; 1472ISelectionService selSvc = GetService(typeof(ISelectionService)) as ISelectionService; 1583ISelectionService selSvc = GetService(typeof(ISelectionService)) as ISelectionService;
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (3)
113ISelectionService selSvc = (ISelectionService)_serviceProvider.GetService(typeof(ISelectionService));
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (2)
29private ISelectionService? _selectionService; 390_selectionService ??= GetService<ISelectionService>();
System\Windows\Forms\Design\ToolStripDesigner.cs (3)
37private ISelectionService _selectionService; // cached selection service. 391internal ISelectionService SelectionService => _selectionService ??= GetService<ISelectionService>();
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (7)
20private ISelectionService _selectionService; 197private void AddSelectionGlyphs(SelectionManager selectionManager, ISelectionService selectionService) 418private bool IsContextMenuStripItemSelected(ISelectionService selectionService) 495ISelectionService selectionService = (ISelectionService)sender; 514ISelectionService selectionService = (ISelectionService)sender;
System\Windows\Forms\Design\ToolStripInSituService.cs (6)
84ISelectionService selectionService = (ISelectionService)_sp.GetService(typeof(ISelectionService)); 185ISelectionService selService = (ISelectionService)_sp.GetService(typeof(ISelectionService));
System\Windows\Forms\Design\ToolStripItemBehavior.cs (11)
111private static ISelectionService GetSelectionService(ToolStripItem item) 116ISelectionService selSvc = (ISelectionService)item.Site.GetService(typeof(ISelectionService)); 232ISelectionService selSvc = GetSelectionService(glyphItem); 281ISelectionService selSvc = GetSelectionService(glyphItem); 483ISelectionService selSvc = GetSelectionService(glyphItem); 509ISelectionService selSvc = GetSelectionService(glyphItem); 532ISelectionService selSvc = GetSelectionService(glyphItem); 727ISelectionService selSvc = GetSelectionService(currentDropItem); 955ISelectionService selSvc = GetSelectionService(item);
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (12)
400ISelectionService selSvc = (ISelectionService)_serviceProvider.GetService(typeof(ISelectionService)); 451ISelectionService selSvc = (ISelectionService)_serviceProvider.GetService(typeof(ISelectionService)); 490ISelectionService selSvc = (ISelectionService)_serviceProvider.GetService(typeof(ISelectionService)); 547ISelectionService selSvc = (ISelectionService)_serviceProvider.GetService(typeof(ISelectionService));
System\Windows\Forms\Design\ToolStripItemDesigner.cs (5)
25private ISelectionService _selectionService; 877ISelectionService selSvc = (ISelectionService)newItem.Site.GetService(typeof(ISelectionService)); 937if (sender is not ISelectionService sSvc)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (16)
16private ISelectionService _selectionService; 54_selectionService = (ISelectionService)serviceProvider.GetService(typeof(ISelectionService)); 216private ISelectionService SelectionService 596ISelectionService selSvc = SelectionService; 670ISelectionService selSvc = SelectionService; 715ISelectionService selSvc = SelectionService; 760ISelectionService selSvc = SelectionService; 802ISelectionService selSvc = SelectionService; 838ISelectionService selSvc = SelectionService; 913ISelectionService selSvc = SelectionService; 974ISelectionService selSvc = SelectionService; 1045ISelectionService selSvc = SelectionService; 1671ISelectionService selSvc = SelectionService; 1762ISelectionService selSvc = SelectionService; 2042ISelectionService selSvc = SelectionService;
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (5)
38private ISelectionService _selectionService; 2135ISelectionService selectionSvc = sender as ISelectionService; 2199object selectedObj = ((ISelectionService)sender).PrimarySelection; 2534private void SelectItems(ToolStripDropDownItem oldSelection, ISelectionService selSvc)
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (2)
32private ISelectionService? _selectionService; 328_selectionService = GetRequiredService<ISelectionService>();
System\Windows\Forms\Design\ToolStripTemplateNode.cs (7)
90private ISelectionService _selectionService; 354private ISelectionService SelectionService 358_selectionService ??= (ISelectionService)_component.Site.GetService(typeof(ISelectionService)); 564ISelectionService cachedSelSvc = (ISelectionService)svcProvider.GetService(typeof(ISelectionService));
System.Windows.Forms.Design.Tests (80)
Mocks\MockSite.cs (2)
64Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 67.Setup(s => s.GetService(typeof(ISelectionService)))
System\ComponentModel\Design\ComponentDesignerTests.cs (47)
789Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 825.Setup(s => s.GetService(typeof(ISelectionService))) 842mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Once()); 863mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 904Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 940.Setup(s => s.GetService(typeof(ISelectionService))) 955mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Once()); 968mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1013Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 1049.Setup(s => s.GetService(typeof(ISelectionService))) 1068mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Once()); 1092mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1121Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 1157.Setup(s => s.GetService(typeof(ISelectionService))) 1174mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Once()); 1185mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1214Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 1250.Setup(s => s.GetService(typeof(ISelectionService))) 1267mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Once()); 1278mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1305Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 1341.Setup(s => s.GetService(typeof(ISelectionService))) 1357mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Once()); 1368mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1399Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 1435.Setup(s => s.GetService(typeof(ISelectionService))) 1452mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Once()); 1465mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1506Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 1542.Setup(s => s.GetService(typeof(ISelectionService))) 1559mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Once()); 1572mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1604Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 1640.Setup(s => s.GetService(typeof(ISelectionService))) 1656mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Once()); 1666mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1687Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 1719.Setup(s => s.GetService(typeof(ISelectionService))) 1734mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Once()); 1741mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1837.Setup(s => s.GetService(typeof(ISelectionService))) 1851mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Once()); 1857mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1877Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 1913.Setup(s => s.GetService(typeof(ISelectionService))) 1928mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Once()); 1940mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2));
System\ComponentModel\Design\DesignerActionServiceTests.cs (9)
21Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 32.Setup(p => p.GetService(typeof(ISelectionService))) 38mockServiceProvider.Verify(p => p.GetService(typeof(ISelectionService)), Times.Once()); 258Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 267.Setup(p => p.GetService(typeof(ISelectionService))) 289Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 298.Setup(p => p.GetService(typeof(ISelectionService))) 321.Setup(p => p.GetService(typeof(ISelectionService))) 333.Setup(p => p.GetService(typeof(ISelectionService)))
System\ComponentModel\Design\DesignSurfaceTests.cs (7)
214ISelectionService service = Assert.IsAssignableFrom<ISelectionService>(container.GetService(typeof(ISelectionService))); 295[InlineData(typeof(ISelectionService))] 1486ISelectionService service = Assert.IsAssignableFrom<ISelectionService>(surface.GetService(typeof(ISelectionService)));
System\Windows\Forms\Design\CommandSetTests.cs (2)
21Mock<ISelectionService> mockSelectionService = new(); 27mockSite.Setup(s => s.GetService(typeof(ISelectionService))).Returns(mockSelectionService.Object);
System\Windows\Forms\Design\ContextMenuStripActionListTests.cs (2)
15private readonly Mock<ISelectionService> _mockSelectionService; 39mockSite.Setup(s => s.GetService(typeof(ISelectionService))).Returns(_mockSelectionService.Object);
System\Windows\Forms\Design\ControlDesignerAccessibleObjectTests.cs (1)
107accessor._selectionService = Mock.Of<ISelectionService>(s =>
System\Windows\Forms\Design\DataGridViewColumnDesignerTests.cs (2)
19Mock<ISelectionService> selectionServiceMock = new(); 23.Setup(s => s.GetService(typeof(ISelectionService)))
System\Windows\Forms\Design\ToolStripActionListTests.cs (2)
15private readonly Mock<ISelectionService> _mockSelectionService; 37mockSite.Setup(s => s.GetService(typeof(ISelectionService))).Returns(_mockSelectionService.Object);
System\Windows\Forms\Design\ToolStripContainerDesignerTests.cs (2)
16private readonly Mock<ISelectionService> _mockSelectionService; 34mockSite.Setup(s => s.GetService(typeof(ISelectionService))).Returns(_mockSelectionService.Object);
System\Windows\Forms\Design\UserControlDocumentDesignerTests.cs (2)
28Mock<ISelectionService> selectionService = new(MockBehavior.Strict); 30.Setup(s => s.GetService(typeof(ISelectionService)))
TestControlDesigner.Mocks.cs (2)
96Mock<ISelectionService> mockSelectionService = new(); 99.Setup(s => s.GetService(typeof(ISelectionService)))
System.Windows.Forms.Tests (31)
System\Windows\Forms\AxHostTests.cs (31)
1763yield return new object[] { false, new Mock<ISelectionService>(MockBehavior.Strict).Object, 1 }; 1787.Setup(s => s.GetService(typeof(ISelectionService))) 1799mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(expectedCallCount)); 1804mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(expectedCallCount)); 1814yield return new object[] { false, new Mock<ISelectionService>(MockBehavior.Strict).Object, 1 }; 1840.Setup(s => s.GetService(typeof(ISelectionService))) 1863mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(expectedCallCount)); 1867mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(expectedCallCount)); 1875Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 1897.Setup(s => s.GetService(typeof(ISelectionService))) 1915mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1921mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1930Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 1952.Setup(s => s.GetService(typeof(ISelectionService))) 1971mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1978mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1987Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 2009.Setup(s => s.GetService(typeof(ISelectionService))) 2029mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 2036mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 2047yield return new object[] { false, new Mock<ISelectionService>(MockBehavior.Strict).Object, 1 }; 2071.Setup(s => s.GetService(typeof(ISelectionService))) 2103mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(expectedCallCount)); 2111mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(expectedCallCount)); 2136.Setup(s => s.GetService(typeof(ISelectionService))) 2170mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(expectedCallCount)); 2179mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(expectedCallCount)); 2188Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 2210.Setup(s => s.GetService(typeof(ISelectionService))) 2240mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(3)); 2250mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(3));