public void creatingSubForumReturnsDiffIDTest() { int id1 = fm.CreateForum(1, titels[0]); int id2 = fm.CreateSubForum(1, subTitels[1], id1); int id3 = fm.CreateSubForum(1, subTitels[0], id1); Assert.AreNotEqual(id1, id2); fm.RemoveForum(1, id1); fm.RemoveSubForum(1, id1, id2); fm.RemoveSubForum(1, id1, id3); }
public void removeSubForumTest() { int id1 = fm.CreateForum(titels[0]); int userId = fm.Register(userNames[0], passwords[0], emails[0], id1); fm.AddAdmin(userId, id1); int id2 = fm.CreateSubForum(subTitels[1], id1, userId); Assert.AreNotEqual(id1, id2); Assert.IsTrue(fm.RemoveSubForum(id1, id2, userId)); fm.RemoveForum(id1); }
public void RemoveSubForum(int userRequesterId, int forumId, int subForumId) { FM.RemoveSubForum(userRequesterId, forumId, subForumId); }