public void IsTopicAdded() { validation.CreateTopic(topicList[0]).Returns(topicListAdmin); topicController.Request = new HttpRequestMessage(); topicController.Configuration = new HttpConfiguration(); var actionResult = topicController.PostTopic(topicList[0]); Assert.AreEqual(HttpStatusCode.Created, actionResult.StatusCode); }