Example #1
0
 public virtual void SetApartment(Apartment apartment)
 {
     Apartment = apartment;
 }
Example #2
0
        public static Dweller FromId(int id, string name, DateTime birthDate, string telephone, string cpf, string email, Apartment apartment)
        {
            var dweller = new Dweller(id, name, birthDate, telephone, cpf, email);

            dweller.SetApartment(apartment);
            return(dweller);
        }