Skip to content

IAuthenticationService.ImplementationType returns Microsoft.AspNetCore.Authentication.AuthenticationServiceImpl instead #2262

@WeiweiCaiAcpt

Description

@WeiweiCaiAcpt

When we run unittest Ocelot by command dotnet vstest with the latest version dotnet-sdk-10.0.100-preview.2.25125.6, it failed with error: The provided expression should be of type Microsoft.AspNetCore.Authentication.AuthenticationService but was Microsoft.AspNetCore.Authentication.AuthenticationServiceImpl.

After investigating, we found that this test failed due to the implementation was refactored in dotnet/aspnetcore#59557 to return a more derived type.

More detailed information about this issue, please refer to this comment:
dotnet/aspnetcore#60645 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    NET10.NET 10 releasebugIdentified as a potential bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions