Example #1
0
        public void ChangeName(MetadataDefinitionGroupName name)
        {
            if (name == null)
            {
                throw new InvariantGuardFailureException();
            }

            ApplyChange(new MetadataDefinitionGroupNameChangedEvent(GetIdentity(), name));
        }
 public virtual MetadataDefinitionGroupProjection WithNewName(MetadataDefinitionGroupName name)
 {
     SetUpdated();
     return new MetadataDefinitionGroupProjection
     {
         Description = Description,
         Identity = Identity,
         Name = name.Name,
         Tracking = Tracking
     };
 }
 public virtual MetadataDefinitionGroupProjection WithNewName(MetadataDefinitionGroupName name)
 {
     SetUpdated();
     return(new MetadataDefinitionGroupProjection
     {
         Description = Description,
         Identity = Identity,
         Name = name.Name,
         Tracking = Tracking
     });
 }
        public MetadataDefinitionGroupState(MetadataDefinitionGroupName name, MetadataDefinitionGroupDescription description)
        {
            if (name == null)
                throw new InvariantGuardFailureException(@"name");

            if (description == null)
                throw new InvariantGuardFailureException(@"description");

            _name = name;
            _description = description;
            _attributes = ImmutableHashSet.Create<Guid>();
        }
        public MetadataDefinitionGroupState(MetadataDefinitionGroupName name, MetadataDefinitionGroupDescription description)
        {
            if (name == null)
            {
                throw new InvariantGuardFailureException(@"name");
            }

            if (description == null)
            {
                throw new InvariantGuardFailureException(@"description");
            }

            _name        = name;
            _description = description;
            _attributes  = ImmutableHashSet.Create <Guid>();
        }
 public MetadataDefinitionGroupState ChangeName(MetadataDefinitionGroupName name)
 {
     return new MetadataDefinitionGroupState(name, _description, _attributes);
 }
 public MetadataDefinitionGroupState(MetadataDefinitionGroupName name, MetadataDefinitionGroupDescription description, IImmutableSet<Guid> set, bool deleted)
     : this(name, description,set)
 {
     this.IsDeleted = deleted;
 }
 public MetadataDefinitionGroupState(MetadataDefinitionGroupName name, MetadataDefinitionGroupDescription description, IImmutableSet<Guid> set)
     : this(name, description)
 {
     _attributes = set;
 }
 public MetadataDefinitionGroupState ChangeName(MetadataDefinitionGroupName name)
 {
     return(new MetadataDefinitionGroupState(name, _description, _attributes));
 }
 public MetadataDefinitionGroupState(MetadataDefinitionGroupName name, MetadataDefinitionGroupDescription description, IImmutableSet <Guid> set, bool deleted)
     : this(name, description, set)
 {
     this.IsDeleted = deleted;
 }
 public MetadataDefinitionGroupState(MetadataDefinitionGroupName name, MetadataDefinitionGroupDescription description, IImmutableSet <Guid> set)
     : this(name, description)
 {
     _attributes = set;
 }
Example #12
0
 public MetadataDefinitionGroup(Guid identity, MetadataDefinitionGroupName name, MetadataDefinitionGroupDescription description)
 {
     ApplyChange(new MetadataDefinitionGroupCreatedEvent(identity, name, description));
 }