public void AssignationDetails_should_return_notfound_result()
        {
            // Arrange
            var mockProjectService = Substitute.For <IProjectService>();

            mockProjectService.GetAssignationDetails().Returns(new List <ProjectItem>());
            var controller = new ProjectController(mockProjectService);

            // Act
            var result = (NotFoundResult)controller.AssignationDetails();

            // Assert
            mockProjectService.Received(1).GetAssignationDetails();
            Assert.IsNotNull(result);
        }
        public void AssignationDetails_should_return_valid_result()
        {
            // Arrange
            var mockProjectService = Substitute.For <IProjectService>();

            mockProjectService.GetAssignationDetails().Returns(new List <ProjectItem> {
                new ProjectItem()
            });
            var controller = new ProjectController(mockProjectService);

            // Act
            var result = (OkNegotiatedContentResult <List <ProjectItem> >)controller.AssignationDetails();

            // Assert
            mockProjectService.Received(1).GetAssignationDetails();
            Assert.IsNotNull(result);
            Assert.AreEqual(typeof(List <ProjectItem>), result.Content.GetType());
            Assert.AreEqual(1, result.Content.Count());
        }