@@ -269,8 +269,8 @@ public async Task CreateCohort(string email, string password, string cohortName,
269269 [ TestCase ( TeacherEmail , TeacherPassword , 350 , 1 , 1 , "User with Id 350 not found." , HttpStatusCode . BadRequest ) ]
270270 [ TestCase ( TeacherEmail , TeacherPassword , 1 , 20 , 1 , "Cohort with Id 20 not found." , HttpStatusCode . BadRequest ) ]
271271 [ TestCase ( TeacherEmail , TeacherPassword , 1 , 1 , 10 , "The specified course is not part of this cohort." , HttpStatusCode . BadRequest ) ]
272- [ TestCase ( TeacherEmail , TeacherPassword , 11 , 1 , 1 , "User is already in the specified course in the cohort." , HttpStatusCode . BadRequest ) ]
273- [ TestCase ( StudentEmail1 , StudentPassword1 , 1 , 1 , 1 , "You are not authorized to add a user to a cohort." , HttpStatusCode . Forbidden ) ]
272+ [ TestCase ( TeacherEmail , TeacherPassword , TeacherId , 3 , 3 , "User is already in the specified course in the cohort." , HttpStatusCode . BadRequest ) ]
273+ [ TestCase ( StudentEmail1 , StudentPassword1 , 1 , 3 , 1 , "You are not authorized to add a user to a cohort." , HttpStatusCode . Forbidden ) ]
274274 public async Task AddUserToCohortAndDeleteUser (
275275 string email ,
276276 string password ,
@@ -392,9 +392,9 @@ public async Task AddUserToCohortAndDeleteUser(
392392
393393 [ TestCase ( TeacherEmail , TeacherPassword , 350 , 1 , 1 , "User with Id 350 not found." , HttpStatusCode . BadRequest ) ]
394394 [ TestCase ( TeacherEmail , TeacherPassword , 1 , 20 , 1 , "Cohort with Id 20 not found." , HttpStatusCode . BadRequest ) ]
395- [ TestCase ( TeacherEmail , TeacherPassword , 11 , 1 , 10 , "The specified course is not part of this cohort." , HttpStatusCode . BadRequest ) ]
395+ [ TestCase ( TeacherEmail , TeacherPassword , 11 , 3 , 10 , "The specified course is not part of this cohort." , HttpStatusCode . BadRequest ) ]
396396 [ TestCase ( TeacherEmail , TeacherPassword , 1 , 1 , 1 , "The specified user is not part of this cohort." , HttpStatusCode . BadRequest ) ]
397- [ TestCase ( TeacherEmail , TeacherPassword , 11 , 1 , 2 , "User is in cohort, but is not taking the specified course." , HttpStatusCode . BadRequest ) ]
397+ [ TestCase ( TeacherEmail , TeacherPassword , 11 , 3 , 2 , "User is in cohort, but is not taking the specified course." , HttpStatusCode . BadRequest ) ]
398398 [ TestCase ( StudentEmail1 , StudentPassword1 , 1 , 1 , 1 , "You are not authorized to delete a user from a cohort." , HttpStatusCode . Forbidden ) ]
399399 public async Task InvalidDeletes (
400400 string email ,
0 commit comments