Пример #1
0
 /// <summary>
 /// Sets the customer address
 /// </summary>
 /// <param name="street">The street name</param>
 /// <param name="number">The house number</param>
 /// <param name="city">The city</param>
 public virtual void SetAddress(string street, string number, City city)
 {
     this.Address = new Address(street, number, city);
 }
Пример #2
0
 /// <summary>
 /// Intializes a new instance of the <see cref="Address"/> class
 /// </summary>
 /// <param name="street">The street name</param>
 /// <param name="number">The house number</param>
 /// <param name="city">The city</param>
 public Address(string street, string number, City city)
 {
     this.Street = street;
     this.Number = number;
     this.City = city;
 }