示例#1
0
        public void ActiveDirectoryEntityMapperMetadataResolver_GetPropertiesToLoad_ValidAttributeNameMetadataResolverTestClass_ReturnsProperties()
        {
            string expected = "ldapAttribute";

            ActiveDirectoryEntityMapperMetadataResolver resolver = new ActiveDirectoryEntityMapperMetadataResolver();

            string[] properties = resolver.GetPropertiesToLoad <ValidAttributeNameMetadataResolverTestClass>();

            CollectionAssert.Contains(properties, expected);
        }
示例#2
0
        public void ActiveDirectoryEntityMapperMetadataResolver_GetPropertiesToLoad_NoAttribute_ThrowsArgumentNullException()
        {
            ActiveDirectoryEntityMapperMetadataResolver resolver = new ActiveDirectoryEntityMapperMetadataResolver();

            string[] properties = resolver.GetPropertiesToLoad <InvalidMetadataResolverTestClass>();
        }