/// <summary> /// Load data into the WebPhoneNumberType instance. /// </summary> /// <param name="phoneNumberType">This phone number type.</param> /// <param name='dataReader'>An open data reader.</param> public static void LoadData(this WebPhoneNumberType phoneNumberType, DataReader dataReader) { phoneNumberType.Id = dataReader.GetInt32(PhoneNumberTypeData.ID); phoneNumberType.NameStringId = dataReader.GetInt32(PhoneNumberTypeData.NAME_STRING_ID); phoneNumberType.Name = dataReader.GetString(PhoneNumberTypeData.NAME, DEFAULT_NAME); }
public WebPhoneNumberType GetPhoneNumberType(Boolean refresh) { if (_phoneNumberType.IsNull() || refresh) { _phoneNumberType = ArtDatabanken.WebService.UserService.Data.UserManager.GetPhoneNumberTypes(GetContext())[0]; } return(_phoneNumberType); }
private WebPhoneNumberType GetPhoneNumberType() { if (_phoneNumberType.IsNull()) { _phoneNumberType = new WebPhoneNumberType(); } return(_phoneNumberType); }
public void Constructor() { WebPhoneNumberType phoneNumberType; phoneNumberType = new WebPhoneNumberType(); Assert.IsNotNull(phoneNumberType); }
public WebPhoneNumberTypeExtensionTest() { _phoneNumberType = null; }
public WebPhoneNumberTypeTest() { _phoneNumberType = null; }