Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LocationIdentifier"/> class.
        /// </summary>
        /// <param name="locationIdentifierType">Type of the location identifier.</param>
        /// <param name="identifierNumber">The identifier number.</param>
        /// <param name="effectiveDateRange">The effective date range.</param>
        protected internal LocationIdentifier(LocationIdentifierType locationIdentifierType, string identifierNumber, DateRange effectiveDateRange)
        {
            Check.IsNotNull ( locationIdentifierType, () => LocationIdentifierType );
            Check.IsNotNullOrWhitespace ( identifierNumber, () => IdentifierNumber );

            _locationIdentifierType = locationIdentifierType;
            _identifierNumber = identifierNumber;
            _effectiveDateRange = effectiveDateRange;
        }
Beispiel #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LocationIdentifier"/> class.
        /// </summary>
        /// <param name="locationIdentifierType">Type of the location identifier.</param>
        /// <param name="identifierNumber">The identifier number.</param>
        /// <param name="effectiveDateRange">The effective date range.</param>
        protected internal LocationIdentifier(LocationIdentifierType locationIdentifierType, string identifierNumber, DateRange effectiveDateRange)
        {
            Check.IsNotNull(locationIdentifierType, () => LocationIdentifierType);
            Check.IsNotNullOrWhitespace(identifierNumber, () => IdentifierNumber);

            _locationIdentifierType = locationIdentifierType;
            _identifierNumber       = identifierNumber;
            _effectiveDateRange     = effectiveDateRange;
        }
 /// <summary>
 /// Assigns the type of the location identifier.
 /// </summary>
 /// <param name="locationIdentifierType">Type of the location identifier.</param>
 /// <returns>A LocationIdentifierBuilder.</returns>
 public LocationIdentifierBuilder WithLocationIdentifierType(LocationIdentifierType locationIdentifierType)
 {
     _locationIdentifierType = locationIdentifierType;
     return(this);
 }
 /// <summary>
 /// Assigns the type of the location identifier.
 /// </summary>
 /// <param name="locationIdentifierType">Type of the location identifier.</param>
 /// <returns>A LocationIdentifierBuilder.</returns>
 public LocationIdentifierBuilder WithLocationIdentifierType(LocationIdentifierType locationIdentifierType)
 {
     _locationIdentifierType = locationIdentifierType;
     return this;
 }