what is the best way to use WebApplicationFactory inside Before(HookType) test #2188
Answered
by
thomhurst
ahmed-abdelrazek
asked this question in
Q&A
-
|
after setting up my asp core web api app like this https://tunit.dev/docs/examples/aspnet turing the webApplicationFactory property into static? a way to make |
Beta Was this translation helpful? Give feedback.
Answered by
thomhurst
Mar 31, 2025
Replies: 1 comment 3 replies
-
|
If you want to use it in Before(Class), then turning the property static should work |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If this is just a one-time setup you can make
APIWebApplicationFactoryimplementIAsyncInitializerand do it inside there.