You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All of the unit tests within ExternalClaimsTransformerTest project in the template run into errors.
The error occurs in all cases when tests try to resolve ExternalClaimsTransformer service from serviceprovider within line
var sut = builder.GetRequiredService<ExternalClaimsTransformer<ApplicationUser>>();
A registration seems to be missing, but I haven't been able to figure out what exactly is missing or which extension still needs to be added to the registration.
This is the stack trace:
Message:
System.InvalidOperationException : Unable to resolve service for type 'Aguacongas.IdentityServer.Abstractions.IFlushableCache1[Aguacongas.IdentityServer.Store.Entity.ExternalClaimTransformation]' while attempting to activate 'Aguacongas.IdentityServer.Store.CacheAdminStore2[Aguacongas.IdentityServer.EntityFramework.Store.AdminStore`2[Aguacongas.IdentityServer.Store.Entity.ExternalClaimTransformation,Aguacongas.IdentityServer.EntityFramework.Store.ConfigurationDbContext],Aguacongas.IdentityServer.Store.Entity.ExternalClaimTransformation]'.
All of the unit tests within ExternalClaimsTransformerTest project in the template run into errors.
The error occurs in all cases when tests try to resolve ExternalClaimsTransformer service from serviceprovider within line
var sut = builder.GetRequiredService<ExternalClaimsTransformer<ApplicationUser>>();
A registration seems to be missing, but I haven't been able to figure out what exactly is missing or which extension still needs to be added to the registration.
This is the stack trace:
Message:
System.InvalidOperationException : Unable to resolve service for type 'Aguacongas.IdentityServer.Abstractions.IFlushableCache
1[Aguacongas.IdentityServer.Store.Entity.ExternalClaimTransformation]' while attempting to activate 'Aguacongas.IdentityServer.Store.CacheAdminStore
2[Aguacongas.IdentityServer.EntityFramework.Store.AdminStore`2[Aguacongas.IdentityServer.Store.Entity.ExternalClaimTransformation,Aguacongas.IdentityServer.EntityFramework.Store.ConfigurationDbContext],Aguacongas.IdentityServer.Store.Entity.ExternalClaimTransformation]'.Stack Trace:
CallSiteFactory.CreateArgumentCallSites(ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound)
CallSiteFactory.CreateConstructorCallSite(ResultCache lifetime, ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain)
CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain, Int32 slot)
CallSiteFactory.TryCreateExact(ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain)
CallSiteFactory.CreateCallSite(ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain)
CallSiteFactory.CreateArgumentCallSites(ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound)
CallSiteFactory.CreateConstructorCallSite(ResultCache lifetime, ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain)
CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain, Int32 slot)
CallSiteFactory.TryCreateExact(ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain)
CallSiteFactory.CreateCallSite(ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain)
CallSiteFactory.GetCallSite(ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain)
ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
ConcurrentDictionary
2.GetOrAdd(TKey key, Func
2 valueFactory)ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
ServiceProvider.GetService(Type serviceType)
ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
ExternalClaimsTransformerTest.TransformPrincipal_should_transform_claims() line 58
--- End of stack trace from previous location ---
The text was updated successfully, but these errors were encountered: