public async Task Gets_group_info_without_students() { var group = Fixture.DataMother.CreateGroup(); using var ucConnection = Fixture.CreateDbConnection(); await using var ucDbContext = Fixture.CreateDbContext(); var useCase = new StudentGroupGetDetails(ucConnection, ucDbContext); var result = await useCase.HandleAsync(new StudentGroupGetDetails.Request(group.Id)); result.Should().NotBeNull(); result !.Name.Should().Be(group.Name); result !.Mnemonic.Should().Be(group.Mnemonic); result !.Students.Should().BeNullOrEmpty(); }
public IndexModel(IDbConnection connection, ProgressContext context) { _useCase = new StudentGroupGetDetails(connection, context); _milestonesUpdateUseCase = new MilestonesUpdateLearningOutcome(context); }