예제 #1
0
 protected virtual void DetectGender()
 {
     if (Gender == Gender.Androgynous)
     {
         Gender = _genderDeterminator.Determinate(this);
     }
 }
예제 #2
0
        public static Gender Detect(string middleName)
        {
            Guard.IfArgumentNullOrWhitespace(middleName, "middleName", "You must specify middle name to detect gender");

            return(Determinator.Determinate(new Petrovich
            {
                MiddleName = middleName
            }));
        }
예제 #3
0
 public Gender Test(IFio fio)
 {
     return(_determinator.Determinate(fio));
 }