Пример #1
0
        public void GetTaskById_WhenProperIdIsPassed_ThenTaskWithGivenIdIsReturned()
        {
            var result = _taskManagerRepository.GetTaskById(1);

            result.Should().NotBeNull();
            result.Should().BeEquivalentTo(new Assignment {
                Id = 1, TaskName = "Test", TaskStatus = (int)AssignmentStatus.Completed
            });
        }