Beispiel #1
0
        public void IsTopicUpdated()
        {
            validation.UpdateTopic(topicList[0]).Returns(topicListAdmin);
            topicController.Request       = new HttpRequestMessage();
            topicController.Configuration = new HttpConfiguration();

            topicList[0].TopicName = "UpdatedTopic";
            var actionResult = topicController.PutTopic(topicList[0]);

            Assert.AreEqual(HttpStatusCode.OK, actionResult.StatusCode);
        }