public void Test_FindPatientsByResponsibleEmail()
 {
     PatientSearch patientSearch = new PatientSearch();
     patientSearch.responsible_email = "";
     var res = api.Patients.GetPatients(patientSearch);
     Assert.IsTrue(res.Count == res.Patients.Count);
 }
 public void Test_FindPatientsByUsername()
 {
     PatientSearch patientSearch = new PatientSearch();
     patientSearch.username = "******";
     var res = api.Patients.GetPatients(patientSearch);
     Assert.IsTrue(res.Count == res.Patients.Count);
 }
        public void Test_FindPatientsByLastname_Doe()
        {
            PatientSearch patientSearch = new PatientSearch();
            patientSearch.limit = 10;
            patientSearch.offset = 0;
            patientSearch.lastname = "Doe";
            var res = api.Patients.GetPatients(patientSearch);

            Assert.IsTrue(res.Count == res.Patients.Count);
            var patientniCount = res.Patients.Where(a => a.Lastname == patientSearch.lastname);
            Assert.IsTrue(patientniCount.Count() > 0);
            Assert.IsTrue(patientniCount.Count() == res.Patients.Count);
        }
        public void Test_FindPatientsByFirstname_Princess()
        {
            PatientSearch patientSearch = new PatientSearch();
            patientSearch.limit = 2;
            patientSearch.offset = 0;
            patientSearch.firstname = "Princess";
            var res = api.Patients.GetPatients(patientSearch);

            var batchniCount = res.Patients.Where(a => a.Firstname == patientSearch.firstname);

            Assert.IsTrue(batchniCount.Count() == res.Patients.Count);

            Assert.IsTrue(res.Count == res.Patients.Count);
        }
 public void Test_FindPatientsByExternalId()
 {
     PatientSearch patientSearch = new PatientSearch();
     patientSearch.external_id = "12";
     var res = api.Patients.GetPatients(patientSearch);
     Assert.IsTrue(res.Count == res.Patients.Count);
 }
 public void Test_FindPatientsByEmail()
 {
     PatientSearch patientSearch = new PatientSearch();
     patientSearch.email = "*****@*****.**";
     var res = api.Patients.GetPatients(patientSearch);
     Assert.IsTrue(res.Count == res.Patients.Count);
 }
 public GroupPatientResponse GetPatients(PatientSearch patientSearch)
 {
     GroupPatientResponse groupPatientResponse = GenericGet<GroupPatientResponse>(patientSearch.ToString());  
     return groupPatientResponse;
 }