Exemplo n.º 1
0
        public async Task AssignReviewerShould_AddAReviewerToInternshipAndReturnTrue()
        {
            List <Guid> guidList = new List <Guid>
            {
                userTeacher2.Id
            };

            var response = await sut.AssignReviewer(internship.Id, guidList);

            var reviewersFromInternship = _context.ReviewerInternships.Where(x => x.ReviewerId == userTeacher2.Id);

            CollectionAssert.AreEqual(internship.Reviewers, reviewersFromInternship);
            Assert.AreEqual(true, response);
        }