コード例 #1
0
        public void AllTest()
        {
            // Set up Prerequisites
            var controller = new TaskController();

            controller.Request       = new HttpRequestMessage();
            controller.Configuration = new HttpConfiguration();
            // Act on Test
            var response = controller.All();

            // Assert the result
            EAL.Task task = (EAL.Task)response.First <Object>();
            Assert.IsTrue(response.Count() > 0);
            Assert.AreEqual("Full Stack Engineer", response.First <Object>().ToString());
            //Assert.Fail();
        }