private static void FillCivilInfo(PRIZ priz, CivilInfo civilInfo) { priz.OBRAZOV = civilInfo.Education.ToEducationStatusString() .Replace(FullProfessionalEducation, ShortProfessionalEducation); priz.DO_PRIZ = civilInfo.Occupation.ToOccupationStatusString(); }
public void CivilInfoTest() { var education = EducationStatus.HigherVocational; var profession = "Инженер автоматики и вычислительной техники"; var occupation = OccupationStatus.WorkOnCommercialEnterprise; var civilInfo = new CivilInfo(education, profession, occupation); Assert.AreEqual(education, civilInfo.Education); Assert.AreEqual(profession, civilInfo.Profession); Assert.AreEqual(occupation, civilInfo.Occupation); }
public Envelope(PassportInfo passportInfo, MilitaryInfo militaryInfo, CivilInfo civilInfo, Contacts contacts, FamilyInfo familyInfo, DriverInfo driverInfo = null) { if (passportInfo == null) { throw new ArgumentNullException(nameof(passportInfo)); } if (militaryInfo == null) { throw new ArgumentNullException(nameof(passportInfo)); } if (civilInfo == null) { throw new ArgumentNullException(nameof(passportInfo)); } if (contacts == null) { throw new ArgumentNullException(nameof(passportInfo)); } if (familyInfo == null) { throw new ArgumentNullException(nameof(passportInfo)); } PassportInfo = passportInfo; MilitaryInfo = militaryInfo; CivilInfo = civilInfo; Contacts = contacts; FamilyInfo = familyInfo; DriverInfo = driverInfo; }
public override int GetHashCode() { return(PassportInfo.GetHashCode() ^ MilitaryInfo.GetHashCode() ^ CivilInfo.GetHashCode() ^ Contacts.GetHashCode() ^ FamilyInfo.GetHashCode() ^ DriverInfo.GetHashCode()); }
private static void FillCivilInfo(priz priz, CivilInfo civilInfo) { priz.education = civilInfo.Education.ToEducationStatusString(); priz.spec = civilInfo.Profession; priz.activity = civilInfo.Occupation.ToOccupationStatusString(); }