Beispiel #1
0
        public async Task EnrollStudentInCourseSection_Should_ReturnStudentNotFound(
            EnrollmentService enrollmentService)
        {
            var result = await enrollmentService.EnrollStudentInCourseSection(1, 1);

            result.Status.Should().Be(EnrollmentResultStatus.StudentNotFound);
        }
Beispiel #2
0
        public async Task EnrollStudentInCourseSection_Should_ReturnCourseNotFound(
            EnrollmentService enrollmentService,
            Student student,
            SchoolContext schoolContext)
        {
            student.Person = null;
            schoolContext.Add(student);
            await schoolContext.SaveChangesAsync();

            var result = await enrollmentService.EnrollStudentInCourseSection(student.StudentId, 1);

            result.Status.Should().Be(EnrollmentResultStatus.CourseSectionNotFound);
        }