1 implementation of CreateInstance
Microsoft.AspNetCore.DataProtection (1)
SimpleActivator.cs (1)
32
public virtual object
CreateInstance
([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type expectedBaseType, string implementationTypeName)
10 references to CreateInstance
Microsoft.AspNetCore.DataProtection (1)
ActivatorExtensions.cs (1)
27
return activator.
CreateInstance
(typeof(T), implementationTypeName) as T
Microsoft.AspNetCore.DataProtection.Tests (9)
KeyManagement\XmlKeyManagerTests.cs (4)
792
.Setup(o => o.
CreateInstance
(typeof(IXmlDecryptor), It.IsAny<string>()))
795
.Setup(o => o.
CreateInstance
(typeof(IAuthenticatedEncryptorDescriptorDeserializer), It.IsAny<string>()))
869
.Setup(o => o.
CreateInstance
(typeof(IXmlDecryptor), It.IsAny<string>()))
872
.Setup(o => o.
CreateInstance
(typeof(IAuthenticatedEncryptorDescriptorDeserializer), It.IsAny<string>()))
MockExtensions.cs (2)
21
.Setup(o => o.
CreateInstance
(typeof(IAuthenticatedEncryptorDescriptorDeserializer), typeName))
44
.Setup(o => o.
CreateInstance
(typeof(IXmlDecryptor), typeName))
XmlEncryption\XmlEncryptionExtensionsTests.cs (3)
96
mockActivator.Setup(o => o.
CreateInstance
(typeof(NullXmlDecryptor), decryptorTypeName)).Returns(new NullXmlDecryptor());
128
mockActivator.Setup(o => o.
CreateInstance
(typeof(IXmlDecryptor), decryptorTypeName)).Returns(new NullXmlDecryptor());
182
mockActivator.Setup(o => o.
CreateInstance
(typeof(IXmlDecryptor), "myDecryptor")).Returns(mockDecryptor.Object);