public void testEdit() { PostsController postControl = new PostsController(); ActionResult edit = postControl.Edit(5); Post post = new Post(); post.PostDate = DateTime.Now; postControl.Edit(post); }
public void testCreate() { PostsController postControl = new PostsController(); ActionResult create = postControl.Create(); Post post = new Post(); post.PostDate = DateTime.Now; post.Title = "New post"; post.ViewCount = 0; post.Longitude = 0; post.Latitude = 0; post.Description = "Description."; post.CategoryID = 1; post.Removed = false; post.UserID = "05f21849-16df-43d0-981a-4ccda1abc0fb"; postControl.Create(post); }
public void testIndex() { PostsController postControl = new PostsController(); ActionResult index = postControl.Index("HaveNeed"); }
public void testDetails() { PostsController postControl = new PostsController(); ActionResult details = postControl.Details(5); }
public void testDeleteConfirmed() { PostsController postControl = new PostsController(); ActionResult deleteConfirmed = postControl.Delete(5); }