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
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.
The link you provided does not take me anywhere. When implementing ProtectedSessionStorage, I would hide the storage behind an interface and then mock the dependency.
Activity
Christian-Oleson commentedon Sep 9, 2021
Hey @newbiE247 ,
The link you provided does not take me anywhere. When implementing ProtectedSessionStorage, I would hide the storage behind an interface and then mock the dependency.