/// <summary>
 /// Action:add Person Information
 /// this function will close the 'AddPerson Form'
 /// </summary>
 /// <param name="entity">entity</param>
 public void AddPersonInformation(AddPersonEntity entity)
 {
     SetPersonInformation(entity);
     if (!IsSaveChangesDisplayed)
     {
         throw new Exception("Can't add person with your input data.");
     }
     this.BtnSaveChanges.Click();
 }
        /// <summary>
        /// Action:Set Person Information
        /// </summary>
        /// <param name="entity">entity</param>
        public void SetPersonInformation(AddPersonEntity entity)
        {
            this.TxtFirstName.Clear();
            this.TxtLastName.Clear();
            this.TxtDateOfBirth.Clear();
            this.SelectGender.SelectByIndex(1);
            this.SelectHouseholdMemberType.SelectByIndex(1);
            this.TxtPhoneNumber.Clear();
            this.TxtEmail.Clear();

            //Name
            this.TxtFirstName.SendKeys(entity.FirstName);
            this.TxtLastName.SendKeys(entity.LastName);
            //DateOfBirth
            if (entity.DateOfBirth == null || entity.DateOfBirth == DateTime.MinValue)
            {
                this.TxtDateOfBirth.SendKeys("MM/DD/YYYY");
            }
            else
            {
                this.TxtDateOfBirth.SendKeys(entity.DateOfBirth.ToString("MM/dd/yyyy"));
            }
            //Gender
            if (!string.IsNullOrEmpty(entity.Gender))
            {
                this.SelectGender.SelectByText(entity.Gender);
            }
            //HouseholdMemberType
            if (!string.IsNullOrEmpty(entity.HouseholdMemberType))
            {
                this.SelectHouseholdMemberType.SelectByText(entity.HouseholdMemberType);
            }

            this.TxtPhoneNumber.SendKeys(entity.PhoneNumber);
            this.TxtEmail.SendKeys(entity.Email);

            //must have this active.
            this.TxtFirstName.SendKeys("");
        }