示例#1
0
        public void UpdateInfoFields(CapabilityName newName, string newDescription)
        {
            Name        = newName.Name;
            Description = newDescription;

            RaiseEvent(new CapabilityUpdated(
                           capabilityId: Id,
                           capabilityName: Name,
                           capabilityDescription: Description
                           ));
        }
示例#2
0
        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
                           ));
        }