Ejemplo n.º 1
0
        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);
        }
        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);
        }