Ejemplo n.º 1
0
        private static void FillCivilInfo(PRIZ priz, CivilInfo civilInfo)
        {
            priz.OBRAZOV = civilInfo.Education.ToEducationStatusString()
                           .Replace(FullProfessionalEducation, ShortProfessionalEducation);

            priz.DO_PRIZ = civilInfo.Occupation.ToOccupationStatusString();
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
 public override int GetHashCode()
 {
     return(PassportInfo.GetHashCode() ^ MilitaryInfo.GetHashCode() ^
            CivilInfo.GetHashCode() ^ Contacts.GetHashCode() ^
            FamilyInfo.GetHashCode() ^ DriverInfo.GetHashCode());
 }
Ejemplo n.º 5
0
 private static void FillCivilInfo(priz priz, CivilInfo civilInfo)
 {
     priz.education = civilInfo.Education.ToEducationStatusString();
     priz.spec      = civilInfo.Profession;
     priz.activity  = civilInfo.Occupation.ToOccupationStatusString();
 }