Пример #1
0
        public void TestWebAPIGetByTaskId()
        {
            IHttpActionResult actionResult = projectObj.GetById(taskId);
            var contentResult = actionResult as OkNegotiatedContentResult <Task>;

            // Assert
            Assert.IsNotNull(contentResult);
            Assert.IsNotNull(contentResult.Content);
            Assert.AreEqual(taskId, contentResult.Content.TaskID);
        }