Esempio n. 1
0
        public void TopicGetAll()
        {
            validation.GetAllTopics().Returns(topicList);
            topicController.Request       = new HttpRequestMessage();
            topicController.Configuration = new HttpConfiguration();
            var actionResult = topicController.GetAllTopics();

            Assert.AreEqual(HttpStatusCode.OK, actionResult.StatusCode);
        }
 private void fillData()
 {
     topicGrid.DataSource = tc.GetAllTopics();
     topicGrid.DataBind();
 }