public void CreatePostTest() { Post posttest = new Post("Posttest", "Muziek", 1, 1, 0); Assert.AreEqual(true, DatabaseAddPost.AddPost(posttest)); }//Tests the creating a post method
/// <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); }