public void ChangeDescription(MetadataDefinitionGroupDescription description) { if (description == null) { throw new InvariantGuardFailureException(); } ApplyChange(new MetadataDefinitionGroupDescriptionChangedEvent(GetIdentity(), description)); }
public virtual MetadataDefinitionGroupProjection WithNewDescription(MetadataDefinitionGroupDescription description) { SetUpdated(); return new MetadataDefinitionGroupProjection { Description = description.Description, Identity = Identity, Name = Name, Tracking = Tracking }; }
public virtual MetadataDefinitionGroupProjection WithNewDescription(MetadataDefinitionGroupDescription description) { SetUpdated(); return(new MetadataDefinitionGroupProjection { Description = description.Description, Identity = Identity, 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 ChangeDescription(MetadataDefinitionGroupDescription entityDescription) { return new MetadataDefinitionGroupState(_name, entityDescription, _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 ChangeDescription(MetadataDefinitionGroupDescription entityDescription) { return(new MetadataDefinitionGroupState(_name, entityDescription, _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 MetadataDefinitionGroup(Guid identity, MetadataDefinitionGroupName name, MetadataDefinitionGroupDescription description) { ApplyChange(new MetadataDefinitionGroupCreatedEvent(identity, name, description)); }