1 implementation of AddExtenderProvider
System.Windows.Forms.Design (1)
System\ComponentModel\Design\ExtenderProviderService.cs (1)
28
void IExtenderProviderService.
AddExtenderProvider
(IExtenderProvider provider)
39 references to AddExtenderProvider
System.Windows.Forms.Design (7)
System\ComponentModel\Design\DesignerHost.cs (3)
237
eps.
AddExtenderProvider
(extenderComponent);
291
eps.
AddExtenderProvider
(extenderProvider);
323
eps.
AddExtenderProvider
(extenderProvider);
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (1)
617
_extenderProviderService.
AddExtenderProvider
(p);
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.cs (1)
79
_providerService.
AddExtenderProvider
(_extender);
System\Windows\Forms\Design\ComponentTray.cs (1)
88
es?.
AddExtenderProvider
(this);
System\Windows\Forms\Design\DesignerExtenders.cs (1)
32
ex.
AddExtenderProvider
(_providers[i]);
System.Windows.Forms.Design.Tests (32)
System\ComponentModel\Design\DesignerHostTests.cs (11)
402
.Setup(s => s.
AddExtenderProvider
(component as IExtenderProvider))
432
mockExtenderProviderService.Verify(s => s.
AddExtenderProvider
(component as IExtenderProvider), Times.Exactly(expectedCallCount));
439
mockExtenderProviderService.Verify(s => s.
AddExtenderProvider
(component as IExtenderProvider), Times.Exactly(expectedCallCount));
446
mockExtenderProviderService.Verify(s => s.
AddExtenderProvider
(component as IExtenderProvider), Times.Exactly(expectedCallCount));
473
.Setup(s => s.
AddExtenderProvider
(component as IExtenderProvider))
502
mockExtenderProviderService.Verify(s => s.
AddExtenderProvider
(component as IExtenderProvider), Times.Never());
509
mockExtenderProviderService.Verify(s => s.
AddExtenderProvider
(component as IExtenderProvider), Times.Never());
516
mockExtenderProviderService.Verify(s => s.
AddExtenderProvider
(component as IExtenderProvider), Times.Never());
2593
.Setup(s => s.
AddExtenderProvider
(component as IExtenderProvider));
2663
.Setup(s => s.
AddExtenderProvider
(component as IExtenderProvider))
2692
mockExtenderProviderService.Verify(s => s.
AddExtenderProvider
(component as IExtenderProvider), Times.Never());
System\ComponentModel\Design\DesignSurfaceTests.cs (3)
648
.Setup(s => s.
AddExtenderProvider
(It.IsAny<IExtenderProvider>()))
673
mockExtenderProviderService.Verify(s => s.
AddExtenderProvider
(mockExtenderProvider.Object), Times.Once());
681
mockExtenderProviderService.Verify(s => s.
AddExtenderProvider
(mockExtenderProvider.Object), Times.Once());
System\ComponentModel\Design\ExtenderProviderServiceTests.cs (7)
29
providerService.
AddExtenderProvider
(mockExtenderProvider1.Object);
33
providerService.
AddExtenderProvider
(mockExtenderProvider2.Object);
43
Assert.Throws<ArgumentNullException>("provider", () => providerService.
AddExtenderProvider
(null));
55
providerService.
AddExtenderProvider
(mockExtenderProvider.Object);
56
Assert.Throws<ArgumentException>("provider", () => providerService.
AddExtenderProvider
(mockExtenderProvider.Object));
69
providerService.
AddExtenderProvider
(mockExtenderProvider1.Object);
70
providerService.
AddExtenderProvider
(mockExtenderProvider2.Object);
System\ComponentModel\Design\SiteNestedContainerTests.cs (11)
306
.Setup(s => s.
AddExtenderProvider
(component as IExtenderProvider))
341
mockExtenderProviderService.Verify(s => s.
AddExtenderProvider
(component as IExtenderProvider), Times.Exactly(expectedCallCount));
348
mockExtenderProviderService.Verify(s => s.
AddExtenderProvider
(component as IExtenderProvider), Times.Exactly(expectedCallCount * 2));
355
mockExtenderProviderService.Verify(s => s.
AddExtenderProvider
(component as IExtenderProvider), Times.Exactly(expectedCallCount * 3));
382
.Setup(s => s.
AddExtenderProvider
(component as IExtenderProvider))
412
mockExtenderProviderService.Verify(s => s.
AddExtenderProvider
(component as IExtenderProvider), Times.Never());
429
mockExtenderProviderService.Verify(s => s.
AddExtenderProvider
(component as IExtenderProvider), Times.Never());
444
mockExtenderProviderService.Verify(s => s.
AddExtenderProvider
(component as IExtenderProvider), Times.Never());
729
.Setup(s => s.
AddExtenderProvider
(component as IExtenderProvider));
794
.Setup(s => s.
AddExtenderProvider
(component as IExtenderProvider))
818
mockExtenderProviderService.Verify(s => s.
AddExtenderProvider
(component as IExtenderProvider), Times.Never());