How to inject TestClock or add TestAuthenticatonHandler for Api when testing with .net aspire. #6861
Unanswered
huberttrueselftrueme
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone.
In net 8 for my test i was using WebApplicationFactory where i have many methods to override and ajust project for testing. For ex. there was a place to override my clockservice,
or override AuthenticationHandler
My question is how to achieve this this using DistributedApplicationTestingBuilder.CreateAsync<Projects.AICoach_Orchestration>();
Thx for help!
Beta Was this translation helpful? Give feedback.
All reactions