コード例 #1
0
        public void GetAllClinical_Return_OkResult()
        {
            //arrange
            ClinicalDataAccessLayer testClinicalAccess = new ClinicalDataAccessLayer();

            //act
            IEnumerable <Clinical> data = testClinicalAccess.GetAllClinicalInfo();

            //assert
            Assert.IsType <Clinical[]>(data);
        }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
 public IEnumerable <Clinical> GetClinicals()
 {
     return(objclinical.GetAllClinicalInfo());
 }