public void SignUp(Player p) { playerDAO = new PlayerDAO(); Players player = new Players(); player.User = p.User; player.Pass = p.Pass; player.Nombre = p.Nombre; player.Apellido = p.Apellido; player.Email = p.Email; player.Avatar = p.Avatar; playerDAO.AltaPlayer(player); }
public void ABPlayer() { PlayerDAO DAO = new PlayerDAO(); Players player = new Players(); player.User = "******"; player.Pass = "******"; player.Nombre = "Pedro"; player.Apellido = "Otero"; player.Email = "*****@*****.**"; player.Avatar = 6; DAO.AltaPlayer(player); player = DAO.ValidarLogin("Pepe", "1234"); Assert.IsNotNull(player); DAO.BajaPlayer(player); }