public void CanReturnScheduleWithAppointments()
 {
     using (var db = new SchedulingContext()) {
     var schedule = db.Schedules.Include(c => c.Appointments).FirstOrDefault();
     Assert.IsNotEmpty(schedule.Appointments);
       }
 }
 public void ReturnClientsWithPatients()
 {
     using (var db = new SchedulingContext())
     {
         Assert.IsNotEmpty(db.Clients.Include(c => c.Patients).ToList());
     }
 }
 public void CanReturnMaterializedAppointments()
 {
     using (var db = new SchedulingContext()) {
     var appointment = db.Appointments.FirstOrDefault();
     Assert.IsNotNullOrEmpty(appointment.Title);
     var apptProps = TypeDescriptor.GetProperties(appointment);
     foreach (PropertyDescriptor pd in apptProps) {
       Debug.WriteLine("{0}:{1}", pd.DisplayName, pd.GetValue(appointment));
     }
       }
 }
 public void ReturnSchedulingClientType()
 {
     var db = new SchedulingContext();
     Assert.IsInstanceOf<AppointmentScheduling.Core.Model.ScheduleAggregate.Client>(db.Clients.FirstOrDefault());
 }
 public void GetClientReferenceList()
 {
     var db = new SchedulingContext();
     Assert.IsNotEmpty(db.Clients.ToList());
 }