Exemple #1
0
        public void GetAllAssignmentsShouldReturnOkObjectResult()
        {
            _internshipAssignmentMock.Setup(_ia => _ia.GetAllInternshipAssignments())
            .Returns(GetAllAssignmentList);

            var assignments = _assignmentsController.GetAllInternshipAssignments();

            Assert.NotNull(assignments);
            Assert.AreEqual(assignments.GetType(), typeof(OkObjectResult));
        }