public void TheEmployeeExists()
        {
            //Inicializar datos
            string documentType   = "CC";
            string documentNumber = "98000000";
            //Ejecutar método
            var data = ConnectionBD.GetEmployee(documentType, documentNumber);

            //Comprobar resultado
            Assert.Equal(1, data.Id);
        }
        public void TheEmployeeDoesNotExist()
        {
            //Inicializar datos
            string documentType   = "CX";
            string documentNumber = "87457212";
            //Ejecutar método
            var data = ConnectionBD.GetEmployee(documentType, documentNumber);

            //Comprobar resultado
            Assert.Equal(0, data.Id);
        }
Example #3
0
 public ActionResult <Employee> Get(string docType, string docNum)
 {
     return(ConnectionBD.GetEmployee(docType, docNum));
 }