Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LocationPhone"/> class.
        /// </summary>
        /// <param name="locationPhoneType">
        /// The location phone type.
        /// </param>
        /// <param name="phone">
        /// The phone.
        /// </param>
        public LocationPhone(LocationPhoneType locationPhoneType, Phone phone)
        {
            Check.IsNotNull(locationPhoneType, () => LocationPhoneType);
            Check.IsNotNull(phone, () => Phone);

            _locationPhoneType = locationPhoneType;
            _phone = phone;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LocationPhone"/> class.
        /// </summary>
        /// <param name="locationPhoneType">
        /// The location phone type.
        /// </param>
        /// <param name="phone">
        /// The phone.
        /// </param>
        public LocationPhone(LocationPhoneType locationPhoneType, Phone phone)
        {
            Check.IsNotNull(locationPhoneType, () => LocationPhoneType);
            Check.IsNotNull(phone, () => Phone);

            _locationPhoneType = locationPhoneType;
            _phone             = phone;
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Assigns the type of the location phone.
 /// </summary>
 /// <param name="locationPhoneType">Type of the location phone.</param>
 /// <returns>A LocationPhoneBuilder.</returns>
 public LocationPhoneBuilder WithLocationPhoneType(LocationPhoneType locationPhoneType)
 {
     _locationPhoneType = locationPhoneType;
     return this;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Assigns the type of the location phone.
 /// </summary>
 /// <param name="locationPhoneType">Type of the location phone.</param>
 /// <returns>A LocationPhoneBuilder.</returns>
 public LocationPhoneBuilder WithLocationPhoneType(LocationPhoneType locationPhoneType)
 {
     _locationPhoneType = locationPhoneType;
     return(this);
 }