コード例 #1
0
ファイル: AgencyContact.cs プロジェクト: divyang4481/REM
        /// <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;
        }
コード例 #2
0
        /// <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;
        }
コード例 #3
0
ファイル: AgencyContactBuilder.cs プロジェクト: girish66/REM
 /// <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);
 }
コード例 #4
0
 /// <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;
 }