1 type derived from DesignerCommandSet
System.Windows.Forms.Design (1)
System\ComponentModel\Design\ComponentDesigner.CDDesignerCommandSet.cs (1)
13
private class CDDesignerCommandSet :
DesignerCommandSet
3 instantiations of DesignerCommandSet
System.Windows.Forms.Design.Tests (3)
System\ComponentModel\Design\ComponentDesignerTests.cs (1)
2191
yield return new object[] { new
DesignerCommandSet
() };
System\ComponentModel\Design\DesignerCommandSetTests.cs (2)
13
DesignerCommandSet set =
new
();
22
DesignerCommandSet set =
new
();
52 references to DesignerCommandSet
System.Design (1)
artifacts\obj\System.Design.Facade\Release\net9.0\System.Design.Forwards.cs (1)
27
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.
DesignerCommandSet
))]
System.Windows.Forms.Design (5)
System\ComponentModel\Design\ComponentDesigner.cs (2)
385
if (component.Site is IServiceContainer sc && GetService(typeof(
DesignerCommandSet
)) is null)
387
sc.AddService<
DesignerCommandSet
>(new CDDesignerCommandSet(this));
System\ComponentModel\Design\DesignerActionService.cs (3)
176
if (serviceContainer.TryGetService(out
DesignerCommandSet
? designerCommandSet))
246
DesignerCommandSet
commandSet = container.GetRequiredService<
DesignerCommandSet
>();
System.Windows.Forms.Design.Tests (46)
System\ComponentModel\Design\ComponentDesignerTests.cs (15)
2108
.Setup(s => s.GetService(typeof(
DesignerCommandSet
)))
2122
mockSite.Verify(s => s.GetService(typeof(
DesignerCommandSet
)), Times.Never());
2159
.Setup(s => s.GetService(typeof(
DesignerCommandSet
)))
2165
DesignerCommandSet
set = null;
2168
.Setup(c => c.AddService(typeof(
DesignerCommandSet
), It.IsAny<
DesignerCommandSet
>()))
2169
.Callback<Type, object>((t, s) => set = Assert.IsAssignableFrom<
DesignerCommandSet
>(s))
2179
mockSite.Verify(s => s.GetService(typeof(
DesignerCommandSet
)), Times.Once());
2180
mockSite.As<IServiceContainer>().Verify(s => s.AddService(typeof(
DesignerCommandSet
), set), Times.Once());
2219
.Setup(s => s.GetService(typeof(
DesignerCommandSet
)))
2224
.Setup(c => c.AddService(typeof(
DesignerCommandSet
), It.IsAny<
DesignerCommandSet
>()))
2237
mockSite.Verify(s => s.GetService(typeof(
DesignerCommandSet
)), Times.Once());
2238
mockSite.As<IServiceContainer>().Verify(s => s.AddService(typeof(
DesignerCommandSet
), It.IsAny<
DesignerCommandSet
>()), Times.Never());
System\ComponentModel\Design\DesignerActionServiceTests.cs (14)
400
.Setup(s => s.GetService(typeof(
DesignerCommandSet
)))
407
.Setup(s => s.GetService(typeof(
DesignerCommandSet
)))
411
Mock<
DesignerCommandSet
> nullMockDesignerCommandSet = new(MockBehavior.Strict);
421
.Setup(s => s.GetService(typeof(
DesignerCommandSet
)))
425
Mock<
DesignerCommandSet
> emptyMockDesignerCommandSet = new(MockBehavior.Strict);
435
.Setup(s => s.GetService(typeof(
DesignerCommandSet
)))
444
Mock<
DesignerCommandSet
> actionListsMockDesignerCommandSet = new(MockBehavior.Strict);
454
.Setup(s => s.GetService(typeof(
DesignerCommandSet
)))
479
Mock<
DesignerCommandSet
> verbsMockDesignerCommandSet = new(MockBehavior.Strict);
489
.Setup(s => s.GetService(typeof(
DesignerCommandSet
)))
523
Mock<
DesignerCommandSet
> verbsMockDesignerCommandSet = new(MockBehavior.Strict);
533
.Setup(s => s.GetService(typeof(
DesignerCommandSet
)))
579
Mock<
DesignerCommandSet
> verbsMockDesignerCommandSet = new(MockBehavior.Strict);
589
.Setup(s => s.GetService(typeof(
DesignerCommandSet
)))
System\ComponentModel\Design\DesignerCommandSetTests.cs (6)
13
DesignerCommandSet
set = new();
22
DesignerCommandSet
set = new();
30
Mock<
DesignerCommandSet
> mockSet = new(MockBehavior.Strict);
40
Mock<
DesignerCommandSet
> mockSet = new(MockBehavior.Strict);
51
Mock<
DesignerCommandSet
> mockSet = new(MockBehavior.Strict);
61
Mock<
DesignerCommandSet
> mockSet = new(MockBehavior.Strict);
System\ComponentModel\Design\DesignerHostTests.cs (5)
203
.Setup(p => p.GetService(typeof(
DesignerCommandSet
)))
224
.Setup(p => p.GetService(typeof(
DesignerCommandSet
)))
256
.Setup(p => p.GetService(typeof(
DesignerCommandSet
)))
778
.Setup(p => p.GetService(typeof(
DesignerCommandSet
)))
1537
.Setup(p => p.GetService(typeof(
DesignerCommandSet
)))
System\ComponentModel\Design\DesignSurfaceTests.cs (1)
135
.Setup(p => p.GetService(typeof(
DesignerCommandSet
)))
System\ComponentModel\Design\SiteNestedContainerTests.cs (5)
115
.Setup(p => p.GetService(typeof(
DesignerCommandSet
)))
130
.Setup(p => p.GetService(typeof(
DesignerCommandSet
)))
156
.Setup(p => p.GetService(typeof(
DesignerCommandSet
)))
318
.Setup(p => p.GetService(typeof(
DesignerCommandSet
)))
394
.Setup(p => p.GetService(typeof(
DesignerCommandSet
)))