Rebel.Tests.Extensions.HiveModelCreationHelper.CreateAttributeType C# (CSharp) Method

CreateAttributeType() public static method

public static CreateAttributeType ( string alias, string name, string description, bool assignId = false ) : AttributeType
alias string
name string
description string
assignId bool
return AttributeType
        public static AttributeType CreateAttributeType(string alias, string name, string description, bool assignId = false)
        {
            var atd = new AttributeType();
            atd.Setup(alias, name, description);
            atd.SerializationType = new StringSerializationType();
            if (assignId)
                atd.Id = new HiveId(Guid.NewGuid());
            return atd;
        }