Exemplo n.º 1
1
        public IList<Patient> RetrievePatients(Doctor doctor)
        {
            IList<Patient> patients = new List<Patient>();

            int i = _cart.Count;

            if (doctor.Name == "NO")
            {
                Patient patient = new Patient();
                patient.Name = "James Bond";
                patient.Address = "Jamaica";
                patients.Add(patient);

                patient = new Patient();
                patient.Name = "Felix Leiter";
                patient.Address = "New York";
                patients.Add(patient);

                patient = new Patient();
                patient.Name = "Miss Moneypenny";
                patient.Address = "London";
                patients.Add(patient);
            }

            return patients;
        }
Exemplo n.º 2
0
 /// <summary>
 /// Create a new patient.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="address">The adress.</param>
 public virtual void InsertPatient(string name, string address)
 {
     Patient patient = new Patient();
     patient.Name = name;
     patient.Address = address;
     _patients.Add(patient);
 }