/// <summary> /// Initializes a new instance of the <see cref="LocationPhone"/> class. /// </summary> /// <param name="locationPhoneType"> /// The location phone type. /// </param> /// <param name="phone"> /// The phone. /// </param> public LocationPhone(LocationPhoneType locationPhoneType, Phone phone) { Check.IsNotNull(locationPhoneType, () => LocationPhoneType); Check.IsNotNull(phone, () => Phone); _locationPhoneType = locationPhoneType; _phone = phone; }
/// <summary> /// Assigns the type of the location phone. /// </summary> /// <param name="locationPhoneType">Type of the location phone.</param> /// <returns>A LocationPhoneBuilder.</returns> public LocationPhoneBuilder WithLocationPhoneType(LocationPhoneType locationPhoneType) { _locationPhoneType = locationPhoneType; return this; }
/// <summary> /// Assigns the type of the location phone. /// </summary> /// <param name="locationPhoneType">Type of the location phone.</param> /// <returns>A LocationPhoneBuilder.</returns> public LocationPhoneBuilder WithLocationPhoneType(LocationPhoneType locationPhoneType) { _locationPhoneType = locationPhoneType; return(this); }