public void TheIdDoesNotExist() { //Inicializar datos int id = 999; //Ejecutar método var idExists = ConnectionBD.GetAuthenticationData(id); //Comprobar resultado Assert.Equal(0, idExists.EmployeeId); }
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); }
public ActionResult <Authentication> Get() { return(ConnectionBD.GetAuthenticationData(1)); }