Beispiel #1
0
        public void EditEndTask()
        {
            TaskModel task = new TaskModel()
            {
                TaskId      = 6007,
                TaskName    = "Wow Good!!",
                Priority    = 1,
                StartDate   = "10-11-2019",
                EndDate     = "10-12-2019",
                IsCompleted = true,
            };

            IHttpActionResult response = _controller.EditEndTask(task);
            var contentResult          = response as OkNegotiatedContentResult <JObject>;

            // Assert the result
            Assert.IsNotNull(contentResult);
        }