-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simple unit test of component using IState<...> #211
Comments
I came to this code (simplified):
Then registering it with:
But when running the test it still complains about:
|
Hi, I also have issue with unit testing with my integration tests. I register Fluxor like ine the Startup.cs :
But when a dispacther method is called, nothing is triggered |
@ABIOLI-COM did you create your service provider from the @AlexTeixeira you probably haven't activated the store. There is a method on IStore, it's usually done by the UI. |
@mrpmorris your right, the store was never initialiazed ! |
@ABIOLI-COM I've closed this ticket. Let me know if there is still something unresolved and I will reopen it. |
I cannot write a correct setup for unit testing of a very simple Blazor component using IState<...>.
Anyone with an example? It would be really helpful for everybody, I think.
Thank you.
Andrea
I would like to write a test that given a state with the content 'something', verifies that the content is correctly generated.
The text was updated successfully, but these errors were encountered: