public void UpdateInfoFields(CapabilityName newName, string newDescription) { Name = newName.Name; Description = newDescription; RaiseEvent(new CapabilityUpdated( capabilityId: Id, capabilityName: Name, capabilityDescription: Description )); }
public Capability( Guid id, CapabilityName name, string rootId, string description, IEnumerable <Membership> memberships, IEnumerable <Context> contexts ) { Id = id; Name = name.Name; RootId = rootId; Description = description; _memberships.AddRange(memberships); _contexts.AddRange(contexts); RaiseEvent(new CapabilityCreated( capabilityId: Id, capabilityName: Name )); }