private async Task SetIdAsync(string query) { var id = await StepsHelper.GetAsync <Guid>( _connectionStringProvider.Value.GetConnectionString(), query, _cancellationToken.Value); id.ShouldNotBeNull(); _scenarioContext.Set(id, ScenarioContextKeys.CompositeSubjectId); }
private async Task SetStudentSchoolAssociationKeyInformationAsync(string query) { var dto = await StepsHelper.GetAsync <StudentSchoolKeyInformation>( _connectionStringProvider.Value.GetConnectionString(), query, _cancellationToken.Value); dto.ShouldNotBeNull(); _scenarioContext.Set(dto.Id, ScenarioContextKeys.CompositeSubjectId); var keyValueByName = new Dictionary <string, object>(StringComparer.InvariantCultureIgnoreCase) { { "StudentUniqueId", dto.StudentUniqueId }, { "SchoolId", dto.SchoolId }, { "EntryDate", dto.EntryDate } }; _scenarioContext.Set(keyValueByName, ScenarioContextKeys.CompositeSubjectKey); }