Exemplo n.º 1
0
        public void HaveAnOwner()
        {
            var client = new Client();
            //var patient = new Patient(client);

            //Assert.AreEqual(client, patient.Owner);
        }
 public Patient(Client owner)
     : this()
 {
     ClientId = owner.Id;
     Owner = owner;
     PreferredDoctorId = Owner.PreferredDoctorId;
 }
Exemplo n.º 3
0
        public void HavePreferredDoctorDefaultToClientPreferredDoctor()
        {
            var client = new Client();
            //var doctor = new Doctor();
            //client.PreferredDoctorId = doctor.Id;

            //var patient = new Patient(client);

            //Assert.AreEqual(client.PreferredDoctorId, patient.PreferredDoctorId);
        }