Exemple #1
0
        public void RemoveTrait(TraitDefinition traitDefinition)
        {
            var traitValue = _traits.FirstOrDefault(x => x.TraitDefinitionId == traitDefinition.Id);

            if (traitValue == null)
            {
                throw new ObjectNotFoundException();
            }

            _traits.Remove(traitValue);
        }
Exemple #2
0
 public TraitValue(TraitDefinition traitDefinition)
 {
     TraitDefinitionId = traitDefinition.Id;
     Name = traitDefinition.Name;
 }