/// <summary>
        /// Maps from web to db Model
        /// </summary>
        /// <param name="input">OLEFamilyBlock Web model</param>
        /// <param name="dbModel">OLEPersonalInformationPage object model</param>
        public static void ToOLEFamilyDbModel(OLEFamilyBlock input, db.OLEPersonalInformationPage dbModel)
        {
            if (input == null || dbModel == null)
            {
                throw new ArgumentException("One of model is null");
            }

            dbModel.FamilyBirthCountry = input.BirthCountry;
            dbModel.FamilyBirthday = input.Birthday;
            dbModel.FamilyBirthPlace = input.BirthPlace;
            dbModel.FamilyGender = input.Gender.ToDbModel();
            dbModel.FamilyHaveChildren = input.HaveChildren;
            dbModel.FamilyPersonCode = input.PersonCode;
            dbModel.FamilyPersonNameFirstName = input.PersonName.FirstName;
            dbModel.FamilyPersonNameLastName = input.PersonName.LastName;
            dbModel.FamilySpouseIntentions = input.SpouseIntentions.ToDbModel();
            dbModel.FamilyStatus = input.FamilyStatus.ToDbModel();

            input.Children.ToDbModel(OLEChildDataRefTypeEnum.OLEPersonalInformationFamilyChildren, dbModel.OleChildDataList);
            input.CurrentCitizenships.ToCitizDbModel(db.TableRefEnums.OLECitizenshipRefTypeEnum.OLEPersonalInformationFamilyCurrent, dbModel.OleCitizenShipList);
            input.PreviousNames.ToDbModel(db.TableRefEnums.PersonNameRefTypeEnum.OLEPersonalInformationFamily, dbModel.OlePersonNameList);
        }
        public void Init()
        {
            var locManager = new Mock<ILocalizationManager>();
            locManager.Setup(
                s => s.GetValidatorTranslationTEST(It.IsAny<string>(), It.IsAny<string>(), It.IsAny<string>()))
                .Returns("Some test string");
            this.validator = new OLEFamilyBlockValidator(locManager.Object);

            // Init test Model
            this.model = ClassPropertyInitializator.SetProperties<OLEFamilyBlock>(new OLEFamilyBlock());
            this.model.PersonName = ClassPropertyInitializator.SetProperties<PersonName>(new PersonName());
            this.model.HaveChildren = false;
            this.model.Gender = Gender.Female;
            this.model.FamilyStatus = OLEFamilyStatus.Married;
            // this.validator.model = this.model;
        }