public void DeletePost_GivenValidInputs_ReturnOk() { var postId = 5; var user = "******"UserId\" : \"si\"}"; var expected = new OkResult(); var actual = (StatusCodeResult)_topicController.DeletePost(postId, user).Result; _posts.RemoveAll(p => p.Id == postId); Assert.AreEqual(expected.StatusCode, actual.StatusCode); }