/// <summary> /// Initializes a new instance of the <see cref="AgencyContact"/> class. /// </summary> /// <param name="agencyContactType"> /// The agency contact type. /// </param> /// <param name="contactStaff"> /// The contact staff. /// </param> /// <param name="effectiveStartDate"> /// The effective start date. /// </param> /// <param name="statusIndicator"> /// The status indicator. /// </param> /// <param name="alternativeContactIndicator"> /// The alternative contact indicator. /// </param> protected internal AgencyContact( AgencyContactType agencyContactType, Staff contactStaff, DateTime? effectiveStartDate, bool statusIndicator, bool alternativeContactIndicator) { Check.IsNotNull(agencyContactType, () => AgencyContactType); Check.IsNotNull(contactStaff, () => ContactStaff); _agencyContactType = agencyContactType; _contactStaff = contactStaff; _effectiveStartDate = effectiveStartDate; _statusIndicator = statusIndicator; _alternativeContactIndicator = alternativeContactIndicator; }
/// <summary> /// Initializes a new instance of the <see cref="AgencyContact"/> class. /// </summary> /// <param name="agencyContactType"> /// The agency contact type. /// </param> /// <param name="contactStaff"> /// The contact staff. /// </param> /// <param name="effectiveStartDate"> /// The effective start date. /// </param> /// <param name="statusIndicator"> /// The status indicator. /// </param> /// <param name="alternativeContactIndicator"> /// The alternative contact indicator. /// </param> protected internal AgencyContact( AgencyContactType agencyContactType, Staff contactStaff, DateTime?effectiveStartDate, bool statusIndicator, bool alternativeContactIndicator) { Check.IsNotNull(agencyContactType, () => AgencyContactType); Check.IsNotNull(contactStaff, () => ContactStaff); _agencyContactType = agencyContactType; _contactStaff = contactStaff; _effectiveStartDate = effectiveStartDate; _statusIndicator = statusIndicator; _alternativeContactIndicator = alternativeContactIndicator; }
/// <summary> /// Assigns the type of the agency contact. /// </summary> /// <param name="agencyContactType"> /// Type of the agency contact. /// </param> /// <returns> /// An AgencyContact. /// </returns> public AgencyContactBuilder WithAgencyContactType(AgencyContactType agencyContactType) { _agencyContactType = agencyContactType; return(this); }
/// <summary> /// Assigns the type of the agency contact. /// </summary> /// <param name="agencyContactType"> /// Type of the agency contact. /// </param> /// <returns> /// An AgencyContact. /// </returns> public AgencyContactBuilder WithAgencyContactType(AgencyContactType agencyContactType) { _agencyContactType = agencyContactType; return this; }