public void TestsavePost() { //arrange PostDB db= new PostDB(); //Act db.savePost("TestType", "TestDetails", "5.32", "85230469", "Test124", "9685", DateTime.Now, false); //Asert Assert.IsNotNull(db.findPosts("TestType")); // return 0; }
public void TestFindPosts() { //Arrange PostDB db = new PostDB(); List<Post> posts= new List<Post>(); //Act posts = db.findPosts("meat"); //Assert Assert.IsTrue(posts.Count>0); }