1 implementation of ISelectionService
System.Windows.Forms.Design (1)
System\ComponentModel\Design\SelectionService.cs (1)
18internal sealed class SelectionService : ISelectionService, IDisposable
390 references to ISelectionService
DesignSurface (6)
MainForm.cs (6)
8private ISelectionService _selectionService; 46_selectionService = (ISelectionService)(isurf.GetIDesignerHost().GetService(typeof(ISelectionService))); 61ISelectionService 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 (256)
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\ToolStripCollectionEditor.cs (2)
42ISelectionService? selectionService = provider.GetService<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 (82)
Mocks\MockSite.cs (2)
66Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 69.Setup(s => s.GetService(typeof(ISelectionService)))
System\ComponentModel\Design\ComponentDesignerTests.cs (47)
791Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 827.Setup(s => s.GetService(typeof(ISelectionService))) 844mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Once()); 865mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 906Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 942.Setup(s => s.GetService(typeof(ISelectionService))) 957mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Once()); 970mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1015Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 1051.Setup(s => s.GetService(typeof(ISelectionService))) 1070mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Once()); 1094mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1123Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 1159.Setup(s => s.GetService(typeof(ISelectionService))) 1176mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Once()); 1187mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1216Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 1252.Setup(s => s.GetService(typeof(ISelectionService))) 1269mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Once()); 1280mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1307Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 1343.Setup(s => s.GetService(typeof(ISelectionService))) 1359mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Once()); 1370mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1401Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 1437.Setup(s => s.GetService(typeof(ISelectionService))) 1454mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Once()); 1467mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1508Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 1544.Setup(s => s.GetService(typeof(ISelectionService))) 1561mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Once()); 1574mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1606Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 1642.Setup(s => s.GetService(typeof(ISelectionService))) 1658mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Once()); 1668mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1689Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 1721.Setup(s => s.GetService(typeof(ISelectionService))) 1736mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Once()); 1743mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1839.Setup(s => s.GetService(typeof(ISelectionService))) 1853mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Once()); 1859mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1879Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 1915.Setup(s => s.GetService(typeof(ISelectionService))) 1930mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Once()); 1942mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2));
System\ComponentModel\Design\DesignerActionServiceTests.cs (9)
23Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 34.Setup(p => p.GetService(typeof(ISelectionService))) 40mockServiceProvider.Verify(p => p.GetService(typeof(ISelectionService)), Times.Once()); 260Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 269.Setup(p => p.GetService(typeof(ISelectionService))) 291Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 300.Setup(p => p.GetService(typeof(ISelectionService))) 323.Setup(p => p.GetService(typeof(ISelectionService))) 335.Setup(p => p.GetService(typeof(ISelectionService)))
System\ComponentModel\Design\DesignSurfaceTests.cs (7)
216ISelectionService service = Assert.IsAssignableFrom<ISelectionService>(container.GetService(typeof(ISelectionService))); 297[InlineData(typeof(ISelectionService))] 1488ISelectionService service = Assert.IsAssignableFrom<ISelectionService>(surface.GetService(typeof(ISelectionService)));
System\Windows\Forms\Design\CommandSetTests.cs (2)
19Mock<ISelectionService> mockSelectionService = new(); 25mockSite.Setup(s => s.GetService(typeof(ISelectionService))).Returns(mockSelectionService.Object);
System\Windows\Forms\Design\ContextMenuStripActionListTests.cs (2)
13private readonly Mock<ISelectionService> _mockSelectionService; 37mockSite.Setup(s => s.GetService(typeof(ISelectionService))).Returns(_mockSelectionService.Object);
System\Windows\Forms\Design\ControlDesignerAccessibleObjectTests.cs (1)
105accessor._selectionService = Mock.Of<ISelectionService>(s =>
System\Windows\Forms\Design\DataGridViewColumnDesignerTests.cs (2)
17Mock<ISelectionService> selectionServiceMock = new(); 21.Setup(s => s.GetService(typeof(ISelectionService)))
System\Windows\Forms\Design\ToolStripActionListTests.cs (2)
13private readonly Mock<ISelectionService> _mockSelectionService; 35mockSite.Setup(s => s.GetService(typeof(ISelectionService))).Returns(_mockSelectionService.Object);
System\Windows\Forms\Design\ToolStripContainerDesignerTests.cs (2)
14private readonly Mock<ISelectionService> _mockSelectionService; 32mockSite.Setup(s => s.GetService(typeof(ISelectionService))).Returns(_mockSelectionService.Object);
System\Windows\Forms\Design\ToolStripPanelDesignerTests.cs (2)
17private readonly Mock<ISelectionService> _mockSelectionService = new(); 33_mockSite.Setup(s => s.GetService(typeof(ISelectionService))).Returns(_mockSelectionService.Object);
System\Windows\Forms\Design\UserControlDocumentDesignerTests.cs (2)
26Mock<ISelectionService> selectionService = new(MockBehavior.Strict); 28.Setup(s => s.GetService(typeof(ISelectionService)))
TestControlDesigner.Mocks.cs (2)
94Mock<ISelectionService> mockSelectionService = new(); 97.Setup(s => s.GetService(typeof(ISelectionService)))
System.Windows.Forms.Tests (31)
System\Windows\Forms\AxHostTests.cs (31)
1765yield return new object[] { false, new Mock<ISelectionService>(MockBehavior.Strict).Object, 1 }; 1789.Setup(s => s.GetService(typeof(ISelectionService))) 1801mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(expectedCallCount)); 1806mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(expectedCallCount)); 1816yield return new object[] { false, new Mock<ISelectionService>(MockBehavior.Strict).Object, 1 }; 1842.Setup(s => s.GetService(typeof(ISelectionService))) 1865mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(expectedCallCount)); 1869mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(expectedCallCount)); 1877Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 1899.Setup(s => s.GetService(typeof(ISelectionService))) 1917mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1923mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1932Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 1954.Setup(s => s.GetService(typeof(ISelectionService))) 1973mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1980mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 1989Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 2011.Setup(s => s.GetService(typeof(ISelectionService))) 2031mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 2038mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(2)); 2049yield return new object[] { false, new Mock<ISelectionService>(MockBehavior.Strict).Object, 1 }; 2073.Setup(s => s.GetService(typeof(ISelectionService))) 2105mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(expectedCallCount)); 2113mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(expectedCallCount)); 2138.Setup(s => s.GetService(typeof(ISelectionService))) 2172mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(expectedCallCount)); 2181mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(expectedCallCount)); 2190Mock<ISelectionService> mockSelectionService = new(MockBehavior.Strict); 2212.Setup(s => s.GetService(typeof(ISelectionService))) 2242mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(3)); 2252mockSite.Verify(s => s.GetService(typeof(ISelectionService)), Times.Exactly(3));