58 references to TypeDescriptionProviderService
netstandard (1)
netstandard.cs (1)
299
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.
TypeDescriptionProviderService
))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
285
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.
TypeDescriptionProviderService
))]
System.Windows.Forms.Design (6)
System\ComponentModel\Design\DesignerHost.cs (1)
63
private
TypeDescriptionProviderService
? _typeService;
System\ComponentModel\Design\InheritanceService.cs (1)
294
return DocumentDesigner.s_manager?.GetService<
TypeDescriptionProviderService
>()?.GetProvider(type);
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
102
if (provider.TryGetService(out
TypeDescriptionProviderService
? service))
181
targetProvider = provider.GetService<
TypeDescriptionProviderService
>()?.GetProvider(type);
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (2)
550
if (GetService(typeof(
TypeDescriptionProviderService
)) is
TypeDescriptionProviderService
typeProviderService)
System.Windows.Forms.Design.Tests (50)
System\ComponentModel\Design\DesignerHostTests.cs (32)
200
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
212
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
247
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
411
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
482
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
528
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
547
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
621
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
677
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
711
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
758
Mock<
TypeDescriptionProviderService
> mockTypeDescriptionProviderService = new(MockBehavior.Strict);
765
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
789
mockServiceProvider.Verify(p => p.GetService(typeof(
TypeDescriptionProviderService
)), Times.Once());
800
mockServiceProvider.Verify(p => p.GetService(typeof(
TypeDescriptionProviderService
)), Times.Once());
811
Mock<
TypeDescriptionProviderService
> mockTypeDescriptionProviderService = new(MockBehavior.Strict);
818
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
836
mockServiceProvider.Verify(p => p.GetService(typeof(
TypeDescriptionProviderService
)), Times.Once());
860
Mock<
TypeDescriptionProviderService
> mockTypeDescriptionProviderService = new(MockBehavior.Strict);
863
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
880
mockServiceProvider.Verify(p => p.GetService(typeof(
TypeDescriptionProviderService
)), Times.Once());
1053
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
1083
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
1116
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
1150
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
1185
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
1223
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
1419
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
1462
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
1487
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
1528
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
2602
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
2672
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (2)
217
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
309
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (16)
1107
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
1108
.Returns((
TypeDescriptionProviderService
)null);
1119
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
1441
Mock<
TypeDescriptionProviderService
> mockTypeDescriptionProviderService = new(MockBehavior.Strict);
1455
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
1462
mockServiceProvider.Verify(p => p.GetService(typeof(
TypeDescriptionProviderService
)), Times.Exactly(typeDescriptionProviderServiceCount));
1470
mockServiceProvider.Verify(p => p.GetService(typeof(
TypeDescriptionProviderService
)), Times.Exactly(typeDescriptionProviderServiceCount * 2));
1485
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
1486
.Returns((
TypeDescriptionProviderService
)null);
1497
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
1501
Mock<
TypeDescriptionProviderService
> invalidMockTypeDescriptionProviderService = new(MockBehavior.Strict);
1513
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
1569
Mock<
TypeDescriptionProviderService
> mockTypeDescriptionProviderService = new(MockBehavior.Strict);
1583
.Setup(p => p.GetService(typeof(
TypeDescriptionProviderService
)))
1593
mockServiceProvider.Verify(p => p.GetService(typeof(
TypeDescriptionProviderService
)), Times.Exactly(typeDescriptionProviderServiceCount));
1601
mockServiceProvider.Verify(p => p.GetService(typeof(
TypeDescriptionProviderService
)), Times.Exactly(typeDescriptionProviderServiceCount * 2));