Skip to content

Blazor WASM Inject HttpClient and NavigationManager as interfaces #20028

@Julien-Marpault

Description

@Julien-Marpault

In Blazor WASM HttpClient and NavigationManager are part of default injected services, but they are through their concrete types and not interfaces.

We have to inject them in specific services to be able to mock in unit testing.

Is possible to add interfaces to inject both of them ?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions