Skip to content

How to add ProtectedSessionStorage to Tests? #492

Description

@newbiE247

In my blazor component i use [Inject] public ProtectedSessionStorage SessionStorage { get; set; }. When testting with bunit it doesn't find implementation of ProtectedSessionStorage and IDataProtectionProvider, since IDataProtectionProvider is injected within ProtectedSessionStorage via contructor.

Typically i would implement services like it's shown here: https://bunit.dev/docs/providing-input/inject-services-into-components.html

But i have no clue how to implement ProtectedSessionStorage.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions