/// <summary>
 ///     Returns a hash code for this instance.
 /// </summary>
 /// <returns>
 ///     A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
 /// </returns>
 public override int GetHashCode()
 {
     unchecked
     {
         return(((OrganizationPhoneType != null ? OrganizationPhoneType.GetHashCode() : 0) * 397) ^ (Phone != null ? Phone.GetHashCode() : 0));
     }
 }
        /// <summary>
        ///     Initializes a new instance of the <see cref="OrganizationPhone" /> class.
        /// </summary>
        /// <param name="organizationPhoneType">Type of the organization phone.</param>
        /// <param name="phone">The phone.</param>
        /// <param name="isPrimary">
        ///     if set to <c>true</c> [is primary].
        /// </param>
        public OrganizationPhone(OrganizationPhoneType organizationPhoneType, Phone phone, bool isPrimary = false)
        {
            Check.IsNotNull(organizationPhoneType, () => OrganizationPhoneType);
            Check.IsNotNull(phone, () => Phone);

            OrganizationPhoneType = organizationPhoneType;
            Phone     = phone;
            IsPrimary = isPrimary;
        }