Skip to content

How To Initialise TestContext Services from Autofac #268

Answered by dcs3spp
dcs3spp asked this question in Q&A
Discussion options

You must be logged in to vote

Cheers @egil thanks for your feedback and patience, that has indeed helped, appreciated :)

Yep, will be happy to try and pop back with a write up in show and tell section.

Needs some refining/refactoring beforehand...introducing abstract classes for Server and BlazorServerPage, getting the NavigationManager working based on baseUrl from generic host etc. However, it is now allowing me to run and produce a single functional test from back-end to front-end Blazor server page.

It might not be a good idea though. You have to be aware of who "owns" the instantiated objects, e.g. the JsonVisitor, and make sure the same instance is shared by both providers.

Yep agree, the point you have raised…

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@egil
Comment options

Comment options

You must be logged in to vote
8 replies
@dcs3spp
Comment options

@egil
Comment options

@dcs3spp
Comment options

@egil
Comment options

@dcs3spp
Comment options

Answer selected by egil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants