/// <summary> /// Initializes a new instance of the <see cref="AgencyPhone"/> class. /// </summary> /// <param name="agencyPhoneType"> /// The agency phone type. /// </param> /// <param name="phone"> /// The phone. /// </param> protected internal AgencyPhone(AgencyPhoneType agencyPhoneType, Phone phone) { Check.IsNotNull(agencyPhoneType, () => AgencyPhoneType); Check.IsNotNull(phone, () => Phone); _agencyPhoneType = agencyPhoneType; _phone = phone; }
/// <summary> /// Assigns the type of the agency phone. /// </summary> /// <param name="agencyPhoneType">Type of the agency phone.</param> /// <returns>An AgencyPhoneBuilder.</returns> public AgencyPhoneBuilder WithAgencyPhoneType(AgencyPhoneType agencyPhoneType) { _agencyPhoneType = agencyPhoneType; return this; }
/// <summary> /// Assigns the type of the agency phone. /// </summary> /// <param name="agencyPhoneType">Type of the agency phone.</param> /// <returns>An AgencyPhoneBuilder.</returns> public AgencyPhoneBuilder WithAgencyPhoneType(AgencyPhoneType agencyPhoneType) { _agencyPhoneType = agencyPhoneType; return(this); }