public void Test_DeleteTopic() { // Arrange DAOTopic objDaoTopic = DAOTopic.getInstance(); Controller.DAOInitialize("Data Source=176.31.248.137;Initial Catalog=user19;Persist Security Info=True;User ID=user19;Password=274user19"); // Look at TOPIC table for initialize topicId int topicId = 1; // Act // Assert Assert.IsTrue(objDaoTopic.DeleteTopicInDb(topicId)); }
/// <summary> /// Uses the method of deleting a topic in db /// </summary> /// <param name="topicId">topic id</param> public static void DeleteTopicInDb(int topicId) { _objDaoTopic = DAOTopic.getInstance(); _objDaoTopic.DeleteTopicInDb(topicId); }