public void GetAllClinical_Return_OkResult() { //arrange ClinicalDataAccessLayer testClinicalAccess = new ClinicalDataAccessLayer(); //act IEnumerable <Clinical> data = testClinicalAccess.GetAllClinicalInfo(); //assert Assert.IsType <Clinical[]>(data); }
public void GetAllClinical_Return_BadRequestResult() { //arrange ClinicalDataAccessLayer testClinicalAccess = new ClinicalDataAccessLayer(); IEnumerable <Clinical> data = new List <Clinical>(); //act data = testClinicalAccess.GetAllClinicalInfo(); data = null; if (data != null) { //assert Assert.IsType <BadRequestResult>(data); } }
public IEnumerable <Clinical> GetClinicals() { return(objclinical.GetAllClinicalInfo()); }