public async Task allow_to_edit_grades_if_someone_has_delegated_his_permissions() { var application = await fixture.GivenAnApplication(); var who = await fixture.GivenAnSubject(Subs.Teacher); var whom = await fixture.GivenAnSubject(Subs.SubstituteOne); await fixture.GivenARole(Roles.Teacher, application, who); await fixture.GivenAnUserWithADelegation(application, who, whom); foreach (var server in servers) { var response = await server .CreateRequest(Api.School.EditGrades) .WithIdentity(new Fixture().Sub(whom.Sub)) .PutAsync(); response.StatusCode.Should().Be(StatusCodes.Status200OK); } }