Skip to content

Update to .NET 9

Update to .NET 9 #1447

GitHub Actions / TeachingRecordSystem.AuthorizeAccess.EndToEndTests test results failed Dec 19, 2024 in 0s

0 passed, 14 failed and 1 skipped

Tests failed

❌ TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/TestResults/_fv-az1487-293_2024-12-19_16_13_56.trx

15 tests were completed in 2s with 0 passed, 14 failed and 1 skipped.

Test suite Passed Failed Skipped Time
TeachingRecordSystem.AuthorizeAccess.EndToEndTests.OidcTests 1❌ 1ms
TeachingRecordSystem.AuthorizeAccess.EndToEndTests.RequestTrnTests 1⚪ 1ms
TeachingRecordSystem.AuthorizeAccess.EndToEndTests.SignInTests 13❌ 13ms

❌ TeachingRecordSystem.AuthorizeAccess.EndToEndTests.OidcTests

❌ SignInAndOut
	System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.

✅ TeachingRecordSystem.AuthorizeAccess.EndToEndTests.RequestTrnTests

⚪ RequestTrn

❌ TeachingRecordSystem.AuthorizeAccess.EndToEndTests.SignInTests

❌ SignIn_KnownUser
	System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
❌ SignIn_UnknownUser_EmailIsAttachedToTrnRequest
	System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
❌ SignIn_UnknownUser_OneLoginUserIsAttachedToTrnRequest
	System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
❌ SignIn_UnknownUserNotVerified
	System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
❌ SignIn_UnknownVerifiedUser_DoesNotMatchWithNinoOrTrn
	System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
❌ SignIn_UnknownVerifiedUser_MatchesWithNino
	System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
❌ SignIn_UnknownVerifiedUserWithGetAnIdentityAccountAndMatchingDetails_MatchesWithTrn
	System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
❌ SignIn_UnknownVerifiedUserWithGetAnIdentityAccountWithTrnAssociatedBySupportAndMatchingDetails_MatchesWithTrn
	System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
❌ SignIn_UnknownVerifiedUserWithGetAnIdentityAccountWithTrnAssociatedByTrnTokenAndMatchingDetails_MatchesWithTrn
	System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
❌ SignIn_UnknownVerifiedUserWithNeitherNinoNorTrn_DoesNotMatch
	System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
❌ SignIn_UnknownVerifiedUserWithoutNino_MatchesWithTrn
	System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
❌ SignIn_UnknownVerifiedUserWithTrnTokenAndMatchingDetails_MatchesWithTrn
	System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
❌ SignIn_UnknownVerifiedUserWithUnmatchedNino_MatchesWithTrn
	System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.

Annotations

Check failure on line 61 in TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs

See this annotation in the file changed.

@github-actions github-actions / TeachingRecordSystem.AuthorizeAccess.EndToEndTests test results

TeachingRecordSystem.AuthorizeAccess.EndToEndTests.OidcTests ► SignInAndOut

Failed test found in:
  TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/TestResults/_fv-az1487-293_2024-12-19_16_13_56.trx
Error:
  System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
Raw output
System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
   at Microsoft.Extensions.DependencyInjection.NpgsqlServiceCollectionExtensions.AddEntityFrameworkNpgsql(IServiceCollection serviceCollection)
   at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal.NpgsqlOptionsExtension.ApplyServices(IServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.ApplyServices(IDbContextOptions options, ServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<GetOrAdd>g__BuildServiceProvider|4_1(IDbContextOptions _, ValueTuple`2 arguments)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<>c.<GetOrAdd>b__4_0(IDbContextOptions contextOptions, ValueTuple`2 tuples)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd[TArg](TKey key, Func`3 valueFactory, TArg factoryArgument)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.GetOrAdd(IDbContextOptions options, Boolean providerRequired)
   at Microsoft.EntityFrameworkCore.DbContext..ctor(DbContextOptions options)
   at lambda_method432(Closure, IServiceProvider, Object[])
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactorySource`1.<>c__DisplayClass4_0.<CreateActivator>b__1(IServiceProvider p, DbContextOptions`1 _)
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactory`1.CreateDbContext()
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactory`1.CreateDbContextAsync(CancellationToken cancellationToken)
   at TeachingRecordSystem.TestCommon.DbHelper.ResetSchemaAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs:line 61
   at TeachingRecordSystem.TestCommon.DbHelper.EnsureSchemaAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs:line 49
   at TeachingRecordSystem.Core.ServiceCollectionExtensions.RunStartupTasksHostedService.StartAsync(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Core/StartupTasks.cs:line 61
   at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__14_1(IHostedService service, CancellationToken token)
   at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
   at Program.<Main>$(String[] args) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.AuthorizeAccess/Program.cs:line 273
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Testing.DeferredHostBuilder.DeferredHost.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Start(IHost host)
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.CreateHost(IHostBuilder builder) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 256
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.ConfigureHostBuilder(IHostBuilder hostBuilder)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer()
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(DelegatingHandler[] handlers)
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.EnsureServer() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 276
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.get_Services() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 228
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.CreateHost(String url, Action`1 configureWebHostBuilder) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 205
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.CreateHost() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 59
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.TeachingRecordSystem.Core.IStartupTask.ExecuteAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 142
   at TeachingRecordSystem.Core.ServiceCollectionExtensions.RunStartupTasksHostedService.StartAsync(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Core/StartupTasks.cs:line 61
   at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__14_1(IHostedService service, CancellationToken token)
   at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)

Check failure on line 61 in TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs

See this annotation in the file changed.

@github-actions github-actions / TeachingRecordSystem.AuthorizeAccess.EndToEndTests test results

TeachingRecordSystem.AuthorizeAccess.EndToEndTests.SignInTests ► SignIn_KnownUser

Failed test found in:
  TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/TestResults/_fv-az1487-293_2024-12-19_16_13_56.trx
Error:
  System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
Raw output
System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
   at Microsoft.Extensions.DependencyInjection.NpgsqlServiceCollectionExtensions.AddEntityFrameworkNpgsql(IServiceCollection serviceCollection)
   at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal.NpgsqlOptionsExtension.ApplyServices(IServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.ApplyServices(IDbContextOptions options, ServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<GetOrAdd>g__BuildServiceProvider|4_1(IDbContextOptions _, ValueTuple`2 arguments)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<>c.<GetOrAdd>b__4_0(IDbContextOptions contextOptions, ValueTuple`2 tuples)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd[TArg](TKey key, Func`3 valueFactory, TArg factoryArgument)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.GetOrAdd(IDbContextOptions options, Boolean providerRequired)
   at Microsoft.EntityFrameworkCore.DbContext..ctor(DbContextOptions options)
   at lambda_method432(Closure, IServiceProvider, Object[])
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactorySource`1.<>c__DisplayClass4_0.<CreateActivator>b__1(IServiceProvider p, DbContextOptions`1 _)
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactory`1.CreateDbContext()
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactory`1.CreateDbContextAsync(CancellationToken cancellationToken)
   at TeachingRecordSystem.TestCommon.DbHelper.ResetSchemaAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs:line 61
   at TeachingRecordSystem.TestCommon.DbHelper.EnsureSchemaAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs:line 49
   at TeachingRecordSystem.Core.ServiceCollectionExtensions.RunStartupTasksHostedService.StartAsync(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Core/StartupTasks.cs:line 61
   at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__14_1(IHostedService service, CancellationToken token)
   at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
   at Program.<Main>$(String[] args) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.AuthorizeAccess/Program.cs:line 273
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Testing.DeferredHostBuilder.DeferredHost.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Start(IHost host)
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.CreateHost(IHostBuilder builder) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 256
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.ConfigureHostBuilder(IHostBuilder hostBuilder)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer()
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(DelegatingHandler[] handlers)
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.EnsureServer() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 276
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.get_Services() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 228
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.CreateHost(String url, Action`1 configureWebHostBuilder) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 205
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.CreateHost() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 59
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.TeachingRecordSystem.Core.IStartupTask.ExecuteAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 142
   at TeachingRecordSystem.Core.ServiceCollectionExtensions.RunStartupTasksHostedService.StartAsync(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Core/StartupTasks.cs:line 61
   at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__14_1(IHostedService service, CancellationToken token)
   at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)

Check failure on line 61 in TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs

See this annotation in the file changed.

@github-actions github-actions / TeachingRecordSystem.AuthorizeAccess.EndToEndTests test results

TeachingRecordSystem.AuthorizeAccess.EndToEndTests.SignInTests ► SignIn_UnknownUser_EmailIsAttachedToTrnRequest

Failed test found in:
  TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/TestResults/_fv-az1487-293_2024-12-19_16_13_56.trx
Error:
  System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
Raw output
System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
   at Microsoft.Extensions.DependencyInjection.NpgsqlServiceCollectionExtensions.AddEntityFrameworkNpgsql(IServiceCollection serviceCollection)
   at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal.NpgsqlOptionsExtension.ApplyServices(IServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.ApplyServices(IDbContextOptions options, ServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<GetOrAdd>g__BuildServiceProvider|4_1(IDbContextOptions _, ValueTuple`2 arguments)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<>c.<GetOrAdd>b__4_0(IDbContextOptions contextOptions, ValueTuple`2 tuples)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd[TArg](TKey key, Func`3 valueFactory, TArg factoryArgument)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.GetOrAdd(IDbContextOptions options, Boolean providerRequired)
   at Microsoft.EntityFrameworkCore.DbContext..ctor(DbContextOptions options)
   at lambda_method432(Closure, IServiceProvider, Object[])
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactorySource`1.<>c__DisplayClass4_0.<CreateActivator>b__1(IServiceProvider p, DbContextOptions`1 _)
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactory`1.CreateDbContext()
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactory`1.CreateDbContextAsync(CancellationToken cancellationToken)
   at TeachingRecordSystem.TestCommon.DbHelper.ResetSchemaAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs:line 61
   at TeachingRecordSystem.TestCommon.DbHelper.EnsureSchemaAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs:line 49
   at TeachingRecordSystem.Core.ServiceCollectionExtensions.RunStartupTasksHostedService.StartAsync(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Core/StartupTasks.cs:line 61
   at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__14_1(IHostedService service, CancellationToken token)
   at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
   at Program.<Main>$(String[] args) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.AuthorizeAccess/Program.cs:line 273
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Testing.DeferredHostBuilder.DeferredHost.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Start(IHost host)
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.CreateHost(IHostBuilder builder) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 256
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.ConfigureHostBuilder(IHostBuilder hostBuilder)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer()
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(DelegatingHandler[] handlers)
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.EnsureServer() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 276
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.get_Services() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 228
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.CreateHost(String url, Action`1 configureWebHostBuilder) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 205
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.CreateHost() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 59
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.TeachingRecordSystem.Core.IStartupTask.ExecuteAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 142
   at TeachingRecordSystem.Core.ServiceCollectionExtensions.RunStartupTasksHostedService.StartAsync(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Core/StartupTasks.cs:line 61
   at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__14_1(IHostedService service, CancellationToken token)
   at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)

Check failure on line 61 in TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs

See this annotation in the file changed.

@github-actions github-actions / TeachingRecordSystem.AuthorizeAccess.EndToEndTests test results

TeachingRecordSystem.AuthorizeAccess.EndToEndTests.SignInTests ► SignIn_UnknownUser_OneLoginUserIsAttachedToTrnRequest

Failed test found in:
  TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/TestResults/_fv-az1487-293_2024-12-19_16_13_56.trx
Error:
  System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
Raw output
System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
   at Microsoft.Extensions.DependencyInjection.NpgsqlServiceCollectionExtensions.AddEntityFrameworkNpgsql(IServiceCollection serviceCollection)
   at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal.NpgsqlOptionsExtension.ApplyServices(IServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.ApplyServices(IDbContextOptions options, ServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<GetOrAdd>g__BuildServiceProvider|4_1(IDbContextOptions _, ValueTuple`2 arguments)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<>c.<GetOrAdd>b__4_0(IDbContextOptions contextOptions, ValueTuple`2 tuples)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd[TArg](TKey key, Func`3 valueFactory, TArg factoryArgument)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.GetOrAdd(IDbContextOptions options, Boolean providerRequired)
   at Microsoft.EntityFrameworkCore.DbContext..ctor(DbContextOptions options)
   at lambda_method432(Closure, IServiceProvider, Object[])
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactorySource`1.<>c__DisplayClass4_0.<CreateActivator>b__1(IServiceProvider p, DbContextOptions`1 _)
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactory`1.CreateDbContext()
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactory`1.CreateDbContextAsync(CancellationToken cancellationToken)
   at TeachingRecordSystem.TestCommon.DbHelper.ResetSchemaAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs:line 61
   at TeachingRecordSystem.TestCommon.DbHelper.EnsureSchemaAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs:line 49
   at TeachingRecordSystem.Core.ServiceCollectionExtensions.RunStartupTasksHostedService.StartAsync(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Core/StartupTasks.cs:line 61
   at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__14_1(IHostedService service, CancellationToken token)
   at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
   at Program.<Main>$(String[] args) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.AuthorizeAccess/Program.cs:line 273
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Testing.DeferredHostBuilder.DeferredHost.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Start(IHost host)
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.CreateHost(IHostBuilder builder) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 256
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.ConfigureHostBuilder(IHostBuilder hostBuilder)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer()
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(DelegatingHandler[] handlers)
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.EnsureServer() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 276
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.get_Services() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 228
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.CreateHost(String url, Action`1 configureWebHostBuilder) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 205
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.CreateHost() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 59
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.TeachingRecordSystem.Core.IStartupTask.ExecuteAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 142
   at TeachingRecordSystem.Core.ServiceCollectionExtensions.RunStartupTasksHostedService.StartAsync(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Core/StartupTasks.cs:line 61
   at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__14_1(IHostedService service, CancellationToken token)
   at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)

Check failure on line 61 in TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs

See this annotation in the file changed.

@github-actions github-actions / TeachingRecordSystem.AuthorizeAccess.EndToEndTests test results

TeachingRecordSystem.AuthorizeAccess.EndToEndTests.SignInTests ► SignIn_UnknownUserNotVerified

Failed test found in:
  TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/TestResults/_fv-az1487-293_2024-12-19_16_13_56.trx
Error:
  System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
Raw output
System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
   at Microsoft.Extensions.DependencyInjection.NpgsqlServiceCollectionExtensions.AddEntityFrameworkNpgsql(IServiceCollection serviceCollection)
   at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal.NpgsqlOptionsExtension.ApplyServices(IServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.ApplyServices(IDbContextOptions options, ServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<GetOrAdd>g__BuildServiceProvider|4_1(IDbContextOptions _, ValueTuple`2 arguments)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<>c.<GetOrAdd>b__4_0(IDbContextOptions contextOptions, ValueTuple`2 tuples)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd[TArg](TKey key, Func`3 valueFactory, TArg factoryArgument)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.GetOrAdd(IDbContextOptions options, Boolean providerRequired)
   at Microsoft.EntityFrameworkCore.DbContext..ctor(DbContextOptions options)
   at lambda_method432(Closure, IServiceProvider, Object[])
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactorySource`1.<>c__DisplayClass4_0.<CreateActivator>b__1(IServiceProvider p, DbContextOptions`1 _)
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactory`1.CreateDbContext()
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactory`1.CreateDbContextAsync(CancellationToken cancellationToken)
   at TeachingRecordSystem.TestCommon.DbHelper.ResetSchemaAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs:line 61
   at TeachingRecordSystem.TestCommon.DbHelper.EnsureSchemaAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs:line 49
   at TeachingRecordSystem.Core.ServiceCollectionExtensions.RunStartupTasksHostedService.StartAsync(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Core/StartupTasks.cs:line 61
   at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__14_1(IHostedService service, CancellationToken token)
   at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
   at Program.<Main>$(String[] args) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.AuthorizeAccess/Program.cs:line 273
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Testing.DeferredHostBuilder.DeferredHost.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Start(IHost host)
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.CreateHost(IHostBuilder builder) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 256
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.ConfigureHostBuilder(IHostBuilder hostBuilder)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer()
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(DelegatingHandler[] handlers)
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.EnsureServer() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 276
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.get_Services() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 228
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.CreateHost(String url, Action`1 configureWebHostBuilder) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 205
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.CreateHost() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 59
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.TeachingRecordSystem.Core.IStartupTask.ExecuteAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 142
   at TeachingRecordSystem.Core.ServiceCollectionExtensions.RunStartupTasksHostedService.StartAsync(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Core/StartupTasks.cs:line 61
   at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__14_1(IHostedService service, CancellationToken token)
   at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)

Check failure on line 61 in TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs

See this annotation in the file changed.

@github-actions github-actions / TeachingRecordSystem.AuthorizeAccess.EndToEndTests test results

TeachingRecordSystem.AuthorizeAccess.EndToEndTests.SignInTests ► SignIn_UnknownVerifiedUser_DoesNotMatchWithNinoOrTrn

Failed test found in:
  TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/TestResults/_fv-az1487-293_2024-12-19_16_13_56.trx
Error:
  System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
Raw output
System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
   at Microsoft.Extensions.DependencyInjection.NpgsqlServiceCollectionExtensions.AddEntityFrameworkNpgsql(IServiceCollection serviceCollection)
   at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal.NpgsqlOptionsExtension.ApplyServices(IServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.ApplyServices(IDbContextOptions options, ServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<GetOrAdd>g__BuildServiceProvider|4_1(IDbContextOptions _, ValueTuple`2 arguments)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<>c.<GetOrAdd>b__4_0(IDbContextOptions contextOptions, ValueTuple`2 tuples)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd[TArg](TKey key, Func`3 valueFactory, TArg factoryArgument)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.GetOrAdd(IDbContextOptions options, Boolean providerRequired)
   at Microsoft.EntityFrameworkCore.DbContext..ctor(DbContextOptions options)
   at lambda_method432(Closure, IServiceProvider, Object[])
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactorySource`1.<>c__DisplayClass4_0.<CreateActivator>b__1(IServiceProvider p, DbContextOptions`1 _)
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactory`1.CreateDbContext()
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactory`1.CreateDbContextAsync(CancellationToken cancellationToken)
   at TeachingRecordSystem.TestCommon.DbHelper.ResetSchemaAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs:line 61
   at TeachingRecordSystem.TestCommon.DbHelper.EnsureSchemaAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs:line 49
   at TeachingRecordSystem.Core.ServiceCollectionExtensions.RunStartupTasksHostedService.StartAsync(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Core/StartupTasks.cs:line 61
   at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__14_1(IHostedService service, CancellationToken token)
   at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
   at Program.<Main>$(String[] args) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.AuthorizeAccess/Program.cs:line 273
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Testing.DeferredHostBuilder.DeferredHost.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Start(IHost host)
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.CreateHost(IHostBuilder builder) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 256
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.ConfigureHostBuilder(IHostBuilder hostBuilder)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer()
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(DelegatingHandler[] handlers)
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.EnsureServer() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 276
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.get_Services() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 228
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.CreateHost(String url, Action`1 configureWebHostBuilder) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 205
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.CreateHost() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 59
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.TeachingRecordSystem.Core.IStartupTask.ExecuteAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 142
   at TeachingRecordSystem.Core.ServiceCollectionExtensions.RunStartupTasksHostedService.StartAsync(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Core/StartupTasks.cs:line 61
   at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__14_1(IHostedService service, CancellationToken token)
   at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)

Check failure on line 61 in TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs

See this annotation in the file changed.

@github-actions github-actions / TeachingRecordSystem.AuthorizeAccess.EndToEndTests test results

TeachingRecordSystem.AuthorizeAccess.EndToEndTests.SignInTests ► SignIn_UnknownVerifiedUser_MatchesWithNino

Failed test found in:
  TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/TestResults/_fv-az1487-293_2024-12-19_16_13_56.trx
Error:
  System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
Raw output
System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
   at Microsoft.Extensions.DependencyInjection.NpgsqlServiceCollectionExtensions.AddEntityFrameworkNpgsql(IServiceCollection serviceCollection)
   at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal.NpgsqlOptionsExtension.ApplyServices(IServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.ApplyServices(IDbContextOptions options, ServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<GetOrAdd>g__BuildServiceProvider|4_1(IDbContextOptions _, ValueTuple`2 arguments)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<>c.<GetOrAdd>b__4_0(IDbContextOptions contextOptions, ValueTuple`2 tuples)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd[TArg](TKey key, Func`3 valueFactory, TArg factoryArgument)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.GetOrAdd(IDbContextOptions options, Boolean providerRequired)
   at Microsoft.EntityFrameworkCore.DbContext..ctor(DbContextOptions options)
   at lambda_method432(Closure, IServiceProvider, Object[])
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactorySource`1.<>c__DisplayClass4_0.<CreateActivator>b__1(IServiceProvider p, DbContextOptions`1 _)
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactory`1.CreateDbContext()
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactory`1.CreateDbContextAsync(CancellationToken cancellationToken)
   at TeachingRecordSystem.TestCommon.DbHelper.ResetSchemaAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs:line 61
   at TeachingRecordSystem.TestCommon.DbHelper.EnsureSchemaAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs:line 49
   at TeachingRecordSystem.Core.ServiceCollectionExtensions.RunStartupTasksHostedService.StartAsync(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Core/StartupTasks.cs:line 61
   at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__14_1(IHostedService service, CancellationToken token)
   at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
   at Program.<Main>$(String[] args) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.AuthorizeAccess/Program.cs:line 273
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Testing.DeferredHostBuilder.DeferredHost.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Start(IHost host)
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.CreateHost(IHostBuilder builder) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 256
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.ConfigureHostBuilder(IHostBuilder hostBuilder)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer()
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(DelegatingHandler[] handlers)
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.EnsureServer() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 276
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.get_Services() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 228
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.CreateHost(String url, Action`1 configureWebHostBuilder) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 205
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.CreateHost() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 59
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.TeachingRecordSystem.Core.IStartupTask.ExecuteAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 142
   at TeachingRecordSystem.Core.ServiceCollectionExtensions.RunStartupTasksHostedService.StartAsync(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Core/StartupTasks.cs:line 61
   at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__14_1(IHostedService service, CancellationToken token)
   at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)

Check failure on line 61 in TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs

See this annotation in the file changed.

@github-actions github-actions / TeachingRecordSystem.AuthorizeAccess.EndToEndTests test results

TeachingRecordSystem.AuthorizeAccess.EndToEndTests.SignInTests ► SignIn_UnknownVerifiedUserWithGetAnIdentityAccountAndMatchingDetails_MatchesWithTrn

Failed test found in:
  TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/TestResults/_fv-az1487-293_2024-12-19_16_13_56.trx
Error:
  System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
Raw output
System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
   at Microsoft.Extensions.DependencyInjection.NpgsqlServiceCollectionExtensions.AddEntityFrameworkNpgsql(IServiceCollection serviceCollection)
   at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal.NpgsqlOptionsExtension.ApplyServices(IServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.ApplyServices(IDbContextOptions options, ServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<GetOrAdd>g__BuildServiceProvider|4_1(IDbContextOptions _, ValueTuple`2 arguments)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<>c.<GetOrAdd>b__4_0(IDbContextOptions contextOptions, ValueTuple`2 tuples)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd[TArg](TKey key, Func`3 valueFactory, TArg factoryArgument)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.GetOrAdd(IDbContextOptions options, Boolean providerRequired)
   at Microsoft.EntityFrameworkCore.DbContext..ctor(DbContextOptions options)
   at lambda_method432(Closure, IServiceProvider, Object[])
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactorySource`1.<>c__DisplayClass4_0.<CreateActivator>b__1(IServiceProvider p, DbContextOptions`1 _)
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactory`1.CreateDbContext()
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactory`1.CreateDbContextAsync(CancellationToken cancellationToken)
   at TeachingRecordSystem.TestCommon.DbHelper.ResetSchemaAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs:line 61
   at TeachingRecordSystem.TestCommon.DbHelper.EnsureSchemaAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs:line 49
   at TeachingRecordSystem.Core.ServiceCollectionExtensions.RunStartupTasksHostedService.StartAsync(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Core/StartupTasks.cs:line 61
   at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__14_1(IHostedService service, CancellationToken token)
   at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
   at Program.<Main>$(String[] args) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.AuthorizeAccess/Program.cs:line 273
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Testing.DeferredHostBuilder.DeferredHost.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Start(IHost host)
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.CreateHost(IHostBuilder builder) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 256
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.ConfigureHostBuilder(IHostBuilder hostBuilder)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer()
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(DelegatingHandler[] handlers)
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.EnsureServer() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 276
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.get_Services() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 228
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.CreateHost(String url, Action`1 configureWebHostBuilder) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 205
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.CreateHost() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 59
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.TeachingRecordSystem.Core.IStartupTask.ExecuteAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 142
   at TeachingRecordSystem.Core.ServiceCollectionExtensions.RunStartupTasksHostedService.StartAsync(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Core/StartupTasks.cs:line 61
   at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__14_1(IHostedService service, CancellationToken token)
   at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)

Check failure on line 61 in TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs

See this annotation in the file changed.

@github-actions github-actions / TeachingRecordSystem.AuthorizeAccess.EndToEndTests test results

TeachingRecordSystem.AuthorizeAccess.EndToEndTests.SignInTests ► SignIn_UnknownVerifiedUserWithGetAnIdentityAccountWithTrnAssociatedBySupportAndMatchingDetails_MatchesWithTrn

Failed test found in:
  TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/TestResults/_fv-az1487-293_2024-12-19_16_13_56.trx
Error:
  System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
Raw output
System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
   at Microsoft.Extensions.DependencyInjection.NpgsqlServiceCollectionExtensions.AddEntityFrameworkNpgsql(IServiceCollection serviceCollection)
   at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal.NpgsqlOptionsExtension.ApplyServices(IServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.ApplyServices(IDbContextOptions options, ServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<GetOrAdd>g__BuildServiceProvider|4_1(IDbContextOptions _, ValueTuple`2 arguments)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<>c.<GetOrAdd>b__4_0(IDbContextOptions contextOptions, ValueTuple`2 tuples)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd[TArg](TKey key, Func`3 valueFactory, TArg factoryArgument)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.GetOrAdd(IDbContextOptions options, Boolean providerRequired)
   at Microsoft.EntityFrameworkCore.DbContext..ctor(DbContextOptions options)
   at lambda_method432(Closure, IServiceProvider, Object[])
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactorySource`1.<>c__DisplayClass4_0.<CreateActivator>b__1(IServiceProvider p, DbContextOptions`1 _)
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactory`1.CreateDbContext()
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactory`1.CreateDbContextAsync(CancellationToken cancellationToken)
   at TeachingRecordSystem.TestCommon.DbHelper.ResetSchemaAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs:line 61
   at TeachingRecordSystem.TestCommon.DbHelper.EnsureSchemaAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs:line 49
   at TeachingRecordSystem.Core.ServiceCollectionExtensions.RunStartupTasksHostedService.StartAsync(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Core/StartupTasks.cs:line 61
   at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__14_1(IHostedService service, CancellationToken token)
   at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
   at Program.<Main>$(String[] args) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.AuthorizeAccess/Program.cs:line 273
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Testing.DeferredHostBuilder.DeferredHost.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Start(IHost host)
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.CreateHost(IHostBuilder builder) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 256
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.ConfigureHostBuilder(IHostBuilder hostBuilder)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer()
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(DelegatingHandler[] handlers)
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.EnsureServer() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 276
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.get_Services() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 228
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.CreateHost(String url, Action`1 configureWebHostBuilder) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 205
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.CreateHost() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 59
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.TeachingRecordSystem.Core.IStartupTask.ExecuteAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 142
   at TeachingRecordSystem.Core.ServiceCollectionExtensions.RunStartupTasksHostedService.StartAsync(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Core/StartupTasks.cs:line 61
   at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__14_1(IHostedService service, CancellationToken token)
   at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)

Check failure on line 61 in TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs

See this annotation in the file changed.

@github-actions github-actions / TeachingRecordSystem.AuthorizeAccess.EndToEndTests test results

TeachingRecordSystem.AuthorizeAccess.EndToEndTests.SignInTests ► SignIn_UnknownVerifiedUserWithGetAnIdentityAccountWithTrnAssociatedByTrnTokenAndMatchingDetails_MatchesWithTrn

Failed test found in:
  TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/TestResults/_fv-az1487-293_2024-12-19_16_13_56.trx
Error:
  System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
Raw output
System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
   at Microsoft.Extensions.DependencyInjection.NpgsqlServiceCollectionExtensions.AddEntityFrameworkNpgsql(IServiceCollection serviceCollection)
   at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal.NpgsqlOptionsExtension.ApplyServices(IServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.ApplyServices(IDbContextOptions options, ServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<GetOrAdd>g__BuildServiceProvider|4_1(IDbContextOptions _, ValueTuple`2 arguments)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<>c.<GetOrAdd>b__4_0(IDbContextOptions contextOptions, ValueTuple`2 tuples)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd[TArg](TKey key, Func`3 valueFactory, TArg factoryArgument)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.GetOrAdd(IDbContextOptions options, Boolean providerRequired)
   at Microsoft.EntityFrameworkCore.DbContext..ctor(DbContextOptions options)
   at lambda_method432(Closure, IServiceProvider, Object[])
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactorySource`1.<>c__DisplayClass4_0.<CreateActivator>b__1(IServiceProvider p, DbContextOptions`1 _)
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactory`1.CreateDbContext()
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactory`1.CreateDbContextAsync(CancellationToken cancellationToken)
   at TeachingRecordSystem.TestCommon.DbHelper.ResetSchemaAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs:line 61
   at TeachingRecordSystem.TestCommon.DbHelper.EnsureSchemaAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs:line 49
   at TeachingRecordSystem.Core.ServiceCollectionExtensions.RunStartupTasksHostedService.StartAsync(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Core/StartupTasks.cs:line 61
   at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__14_1(IHostedService service, CancellationToken token)
   at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
   at Program.<Main>$(String[] args) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.AuthorizeAccess/Program.cs:line 273
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Testing.DeferredHostBuilder.DeferredHost.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Start(IHost host)
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.CreateHost(IHostBuilder builder) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 256
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.ConfigureHostBuilder(IHostBuilder hostBuilder)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer()
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(DelegatingHandler[] handlers)
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.EnsureServer() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 276
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.get_Services() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 228
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.CreateHost(String url, Action`1 configureWebHostBuilder) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 205
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.CreateHost() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 59
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.TeachingRecordSystem.Core.IStartupTask.ExecuteAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 142
   at TeachingRecordSystem.Core.ServiceCollectionExtensions.RunStartupTasksHostedService.StartAsync(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Core/StartupTasks.cs:line 61
   at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__14_1(IHostedService service, CancellationToken token)
   at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)

Check failure on line 61 in TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs

See this annotation in the file changed.

@github-actions github-actions / TeachingRecordSystem.AuthorizeAccess.EndToEndTests test results

TeachingRecordSystem.AuthorizeAccess.EndToEndTests.SignInTests ► SignIn_UnknownVerifiedUserWithNeitherNinoNorTrn_DoesNotMatch

Failed test found in:
  TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/TestResults/_fv-az1487-293_2024-12-19_16_13_56.trx
Error:
  System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
Raw output
System.TypeLoadException : Method 'get_LockReleaseBehavior' in type 'Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.NpgsqlHistoryRepository' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.
   at Microsoft.Extensions.DependencyInjection.NpgsqlServiceCollectionExtensions.AddEntityFrameworkNpgsql(IServiceCollection serviceCollection)
   at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal.NpgsqlOptionsExtension.ApplyServices(IServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.ApplyServices(IDbContextOptions options, ServiceCollection services)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<GetOrAdd>g__BuildServiceProvider|4_1(IDbContextOptions _, ValueTuple`2 arguments)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<>c.<GetOrAdd>b__4_0(IDbContextOptions contextOptions, ValueTuple`2 tuples)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd[TArg](TKey key, Func`3 valueFactory, TArg factoryArgument)
   at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.GetOrAdd(IDbContextOptions options, Boolean providerRequired)
   at Microsoft.EntityFrameworkCore.DbContext..ctor(DbContextOptions options)
   at lambda_method432(Closure, IServiceProvider, Object[])
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactorySource`1.<>c__DisplayClass4_0.<CreateActivator>b__1(IServiceProvider p, DbContextOptions`1 _)
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactory`1.CreateDbContext()
   at Microsoft.EntityFrameworkCore.Internal.DbContextFactory`1.CreateDbContextAsync(CancellationToken cancellationToken)
   at TeachingRecordSystem.TestCommon.DbHelper.ResetSchemaAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs:line 61
   at TeachingRecordSystem.TestCommon.DbHelper.EnsureSchemaAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.TestCommon/DbHelper.cs:line 49
   at TeachingRecordSystem.Core.ServiceCollectionExtensions.RunStartupTasksHostedService.StartAsync(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Core/StartupTasks.cs:line 61
   at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__14_1(IHostedService service, CancellationToken token)
   at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
   at Program.<Main>$(String[] args) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.AuthorizeAccess/Program.cs:line 273
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Testing.DeferredHostBuilder.DeferredHost.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Start(IHost host)
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.CreateHost(IHostBuilder builder) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 256
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.ConfigureHostBuilder(IHostBuilder hostBuilder)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer()
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(DelegatingHandler[] handlers)
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.EnsureServer() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 276
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.KestrelWebApplicationFactory`1.get_Services() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 228
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.Host`1.CreateHost(String url, Action`1 configureWebHostBuilder) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 205
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.CreateHost() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 59
   at TeachingRecordSystem.AuthorizeAccess.EndToEndTests.HostFixture.TeachingRecordSystem.Core.IStartupTask.ExecuteAsync() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.EndToEndTests/HostFixture.cs:line 142
   at TeachingRecordSystem.Core.ServiceCollectionExtensions.RunStartupTasksHostedService.StartAsync(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Core/StartupTasks.cs:line 61
   at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__14_1(IHostedService service, CancellationToken token)
   at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)