private IEnumerable <string> ValidateCreateProperties(UserMetadata userMetadata, IEnumerable <PropertyValue> properties)
        {
            if (userMetadata == null)
            {
                throw new ArgumentNullException(nameof(userMetadata));
            }
            properties = properties ?? Enumerable.Empty <PropertyValue>();

            var meta = userMetadata.GetCreateProperties();

            return(meta.Validate(properties));
        }
        public CreateUserLink(IUrlHelper url, UserMetadata userMetadata)
        {
            if (url == null)
            {
                throw new ArgumentNullException(nameof(url));
            }
            if (userMetadata == null)
            {
                throw new ArgumentNullException(nameof(userMetadata));
            }

            this["href"] = url.Link("CreateUser", null);
            this["meta"] = userMetadata.GetCreateProperties();
        }
 public CreateUserLink(UrlHelper url, UserMetadata userMetadata)
 {
     this["href"] = url.Link(Constants.RouteNames.CreateUser, null);
     this["meta"] = userMetadata.GetCreateProperties();
 }