Exemplo n.º 1
0
        public async Task GetEntireStudentListAsync_ShouldReturnListOfStudents()
        {
            //ARRANGE
            _tutorRepositoryMock.Setup(_tutorRepositoryMock => _tutorRepositoryMock.GetEntireStudentListAsync()).Returns(Task.FromResult((IEnumerable <User>)mockList));
            int students = 0;

            //ACT
            var studentList = await _sut.GetEntireStudentListAsync();

            foreach (User student in studentList)
            {
                students++;
            }

            //ASSERT
            Assert.IsTrue(students > 0, "The students were not greater than 0");
        }