Ejemplo n.º 1
0
        public async Task AssignProject_ReturnsNotFoundIfIdIsNull()
        {
            // Arrange
            var controller = new ProjectController(_repository.Object);

            // Act
            int?id     = null;
            var result = await controller.AssignProject(id);

            // Assert
            Assert.IsNotNull(result, "View Result is null");
            Assert.IsInstanceOfType(result, typeof(NotFoundObjectResult));
        }