Egil Hansen's testing library for Blazor components may be what you're looking for. https://bunit.egilhansen.com
Posted 3 years ago
by selliott
Kindly help.. Please provide any example which has unit test for component testing by mocking services.
Egil Hansen's testing library for Blazor components may be what you're looking for. https://bunit.egilhansen.com
This library has only injecting service.. Can we have anything where we can mock service.
Here's a blog post that talks about mocking a service in Blazor: https://www.telerik.com/blogs/unit-testing-blazor-components-bunit-justmock