Exemplo n.º 1
0
        public void ActiveDirectoryEntityMapperMetadataResolver_GetSchemaClass_PkiCertificateTemplateWithValidAttribute_ReturnsSchemaClassName()
        {
            string expected = ActiveDirectorySchemaClass.PkiCertificateTemplate;

            ActiveDirectoryEntityMapperMetadataResolver resolver = new ActiveDirectoryEntityMapperMetadataResolver();

            string actual = resolver.GetSchemaClass <AdcsCertificateTemplate>();

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 2
0
        public void ActiveDirectoryEntityMapperMetadataResolver_GetSchemaClass_AttributeWithoutNameValue_ThrowException()
        {
            ActiveDirectoryEntityMapperMetadataResolver resolver = new ActiveDirectoryEntityMapperMetadataResolver();

            string actual = resolver.GetSchemaClass <EmptyAttributeNameMetadataResolverTestClass>();
        }
Exemplo n.º 3
0
        public void ActiveDirectoryEntityMapperMetadataResolver_GetSchemaClass_TypeWithoutAttributeException_ThrowException()
        {
            ActiveDirectoryEntityMapperMetadataResolver resolver = new ActiveDirectoryEntityMapperMetadataResolver();

            string actual = resolver.GetSchemaClass <InvalidMetadataResolverTestClass>();
        }