/// <summary> /// Initializes a new instance of the <see cref="StaffPhone"/> class. /// </summary> /// <param name="staffPhoneType"> /// Type of the staff phone. /// </param> /// <param name="phone"> /// The phone. /// </param> /// <param name="confidentialIndicator"> /// If set to <c>true</c> [confidential indicator]. /// </param> public StaffPhone(StaffPhoneType staffPhoneType, Phone phone, bool confidentialIndicator) { Check.IsNotNull(staffPhoneType, () => StaffPhoneType); Check.IsNotNull(phone, () => Phone); _staffPhoneType = staffPhoneType; _phone = phone; _confidentialIndicator = confidentialIndicator; }
/// <summary> /// Initializes a new instance of the <see cref="StaffPhone"/> class. /// </summary> /// <param name="staffPhoneType"> /// Type of the staff phone. /// </param> /// <param name="phone"> /// The phone. /// </param> /// <param name="confidentialIndicator"> /// If set to <c>true</c> [confidential indicator]. /// </param> public StaffPhone( StaffPhoneType staffPhoneType, Phone phone, bool confidentialIndicator ) { Check.IsNotNull ( staffPhoneType, () => StaffPhoneType ); Check.IsNotNull ( phone, () => Phone ); _staffPhoneType = staffPhoneType; _phone = phone; _confidentialIndicator = confidentialIndicator; }