Beispiel #1
0
        /// <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;
        }
Beispiel #2
0
        /// <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;
        }
Beispiel #3
0
 /// <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;
 }
Beispiel #4
0
 /// <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);
 }