Exemple #1
0
        public void TheIdDoesNotExist()
        {
            //Inicializar datos
            int id = 999;
            //Ejecutar método
            var idExists = ConnectionBD.GetAuthenticationData(id);

            //Comprobar resultado
            Assert.Equal(0, idExists.EmployeeId);
        }
Exemple #2
0
        public void TheIdExists()
        {
            //Inicializar datos
            int id = 1;
            //Ejecutar método
            var idExists = ConnectionBD.GetAuthenticationData(id);

            //Comprobar resultado
            Assert.Equal("joantan", idExists.UserName);
            Assert.Equal("12345", idExists.Password);
        }
Exemple #3
0
 public ActionResult <Authentication> Get()
 {
     return(ConnectionBD.GetAuthenticationData(1));
 }