Exemple #1
0
        public void AlredyVoted_UserAVote_RetourneTrue()
        {
            int idSondage = dal.CreatePoll();
            int idUser    = dal.AddUser("Nouvel User", "New1", "12345");

            dal.CreateRestaurant("La bonne fourchette", "0102030405");
            dal.AddVoted(idSondage, 1, idUser);

            bool aVote = dal.AlredyVoted(idSondage, idUser.ToString());

            Assert.IsTrue(aVote);
        }