/// <summary>
 /// Load data into the WebPersonGender instance.
 /// </summary>
 /// <param name="personGender">This person gender.</param>
 /// <param name='dataReader'>An open data reader.</param>
 public static void LoadData(this WebPersonGender personGender,
                             DataReader dataReader)
 {
     personGender.Id           = dataReader.GetInt32(PersonGenderData.ID);
     personGender.NameStringId = dataReader.GetInt32(PersonGenderData.NAME_STRING_ID);
     personGender.Name         = dataReader.GetString(PersonGenderData.NAME, DEFAULT_NAME);
 }
 private WebPersonGender GetPersonGender()
 {
     if (_personGender.IsNull())
     {
         _personGender = new WebPersonGender();
     }
     return(_personGender);
 }
        public void Constructor()
        {
            WebPersonGender personGender;

            personGender = new WebPersonGender();

            Assert.IsNotNull(personGender);
        }
 public WebPersonGender GetPersonGender(Boolean refresh)
 {
     if (_personGender.IsNull() || refresh)
     {
         _personGender = ArtDatabanken.WebService.UserService.Data.UserManager.GetPersonGenders(GetContext())[0];
     }
     return(_personGender);
 }
 public WebPersonGenderTest()
 {
     _personGender = null;
 }
 public WebPersonGenderExtensionTest()
 {
     _personGender = null;
 }