Пример #1
0
        public void GetParentTasks()
        {
            ProjectManagerController tb = new ProjectManagerController(dbContext.Object);
            var result = tb.GetParentTasks() as OkNegotiatedContentResult <List <ParentTasks> >;

            Assert.AreEqual(result.Content.Count, 2);
        }
        public void When_GetAllParentTask_Then_AllParentTaskReceived()
        {
            // Arrange & Act
            var result = Controller.GetParentTasks();

            // Assert
            Assert.IsNotNull(result);
            Assert.AreEqual(ProjectManagerFakeData.TaskFakeData.AllTasks.Where(x => x.IsParentTask).Count(), result.Count());
        }
Пример #3
0
 public void GetParentTasks_IterationsMode()
 {
     var result = tb.GetParentTasks() as OkNegotiatedContentResult <List <ParentTasks> >;
 }