Beispiel #1
0
        /// <summary>
        /// Removes the payor phone number.
        /// </summary>
        /// <param name="payorPhoneNumber">The payor phone number.</param>
        public virtual void RemovePayorPhoneNumber(PayorPhone payorPhoneNumber)
        {
            Check.IsNotNull(payorPhoneNumber, "Payor Phone Number is required.");

            _phoneNumbers.Delete(payorPhoneNumber);
            NotifyItemRemoved(() => PhoneNumbers, payorPhoneNumber);
        }
Beispiel #2
0
        /// <summary>
        /// Checks if all the values of the object are equal.
        /// </summary>
        /// <param name="payorPhone">The payor phone number.</param>
        /// <returns>
        /// A bool indicating whether objects are equal.
        /// </returns>
        public virtual bool ValuesEqual(PayorPhone payorPhone)
        {
            if (payorPhone == null)
            {
                return(false);
            }

            var valuesEqual =
                Equals(PayorPhoneType.Key, payorPhone.PayorPhoneType.Key) &&
                Equals(Phone, payorPhone.Phone);

            return(valuesEqual);
        }
Beispiel #3
0
        /// <summary>
        /// Removes the payor phone number.
        /// </summary>
        /// <param name="payorPhoneNumber">The payor phone number.</param>
        public virtual void RemovePayorPhoneNumber( PayorPhone payorPhoneNumber )
        {
            Check.IsNotNull ( payorPhoneNumber, "Payor Phone Number is required." );

            _phoneNumbers.Delete ( payorPhoneNumber );
            NotifyItemRemoved ( () => PhoneNumbers, payorPhoneNumber );
        }
Beispiel #4
0
 /// <summary>
 /// Adds the payor phone number.
 /// </summary>
 /// <param name="payorPhoneNumber">The payor phone number.</param>
 public virtual void AddPayorPhoneNumber( PayorPhone payorPhoneNumber )
 {
     payorPhoneNumber.Payor = this;
     _phoneNumbers.Add ( payorPhoneNumber );
     NotifyItemAdded ( () => PhoneNumbers, payorPhoneNumber );
 }
Beispiel #5
0
 /// <summary>
 /// Adds the payor phone number.
 /// </summary>
 /// <param name="payorPhoneNumber">The payor phone number.</param>
 public virtual void AddPayorPhoneNumber(PayorPhone payorPhoneNumber)
 {
     payorPhoneNumber.Payor = this;
     _phoneNumbers.Add(payorPhoneNumber);
     NotifyItemAdded(() => PhoneNumbers, payorPhoneNumber);
 }
Beispiel #6
0
        /// <summary>
        /// Checks if all the values of the object are equal.
        /// </summary>
        /// <param name="payorPhone">The payor phone number.</param>
        /// <returns>
        /// A bool indicating whether objects are equal.
        /// </returns>
        public virtual bool ValuesEqual( PayorPhone payorPhone )
        {
            if (payorPhone == null)
            {
                return false;
            }

            var valuesEqual =
                Equals(PayorPhoneType.Key, payorPhone.PayorPhoneType.Key) &&
                Equals(Phone, payorPhone.Phone);
            return valuesEqual;
        }