Esempio n. 1
0
        public void CreateReactionTest()
        {
            Post posttest = new Post("Posttest", "Muziek", 1, 1, 0, "1");

            Assert.AreEqual(true, DatabaseAddPost.AddReaction(posttest));
        }//Test the creatign a reaction method
Esempio n. 2
0
 /// <summary>
 /// Adds the post from the parameter into the Data access layer as a reaction
 /// </summary>
 /// <param name="post">The selected post from Tijdlijnform<param>
 /// <returns>True if changes are allowed false if not</returns>
 public void AddReaction(Post post)
 {
     Check = DatabaseAddPost.AddReaction(post);
 }
Esempio n. 3
0
        public void CreatePostTest()
        {
            Post posttest = new Post("Posttest", "Muziek", 1, 1, 0);

            Assert.AreEqual(true, DatabaseAddPost.AddPost(posttest));
        }//Tests the creating a post method
Esempio n. 4
0
 /// <summary>
 /// Adds the post from the parameter into the Data access layer
 /// </summary>
 /// <param name="post">The selected post from Tijdlijnform<param>
 /// <returns>True if changes are allowed false if not</returns>
 public void AddPost(Post post)
 {
     Check = DatabaseAddPost.AddPost(post);
 }