public void Create_And_Get_Patients() { IEnumerable <Core.Patient.Patient> patientList = _patientService.GetPatients().Result; Assert.True(patientList.Count() >= 0); Core.Patient.Patient patient = new Core.Patient.Patient(); patient.Name = "John Test Test1"; patient.PhoneNumber = "8623452673"; patient.Address = "300 N Kendall Rd"; var result = _patientService.CreatePatientAsync(patient); patientList = _patientService.GetPatientsByNameAsync(patient.Name).Result; Assert.True(patientList.Count() >= 1); }
public async Task <int> UpdatePatientAsync(Core.Patient.Patient patient) { return(await _patientRepository.UpdateAsync(patient)); }
public async Task <int> CreatePatientAsync(Core.Patient.Patient patient) { return(await _patientRepository.AddAsync(patient)); }