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
{{ message }}
This repository was archived by the owner on Dec 26, 2025. It is now read-only.
I am doing unit test using bunit for my Blazored modal. The problem is I cannot mock BlazoredModalInstance as it is contrate class without virtual method. Is there a way to do something like this:
var mockModaInstance = new Mock<BlazoredModalInstance>();
mockModaInstance.Setup(m => m.CloseAsync(It.IsAny<ModalResult>())).Returns(Task.CompletedTask);