Exemplo n.º 1
0
 public decimal GetPersonalityValue(Person person, PersonalityAttributeId attribute)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 2
0
        public decimal GetPersonalityValue(PersonalityAttributeId id)
        {
            var attribute = Personality.Attributes.FirstOrDefault(a => a.Id == id);

            if (attribute != null)
            {
                return attribute.Value;
            }

            return 0;
        }