DEV Community

Discussion on: C#: How to mock HttpContext methods such as ForbidAsync?

Collapse
 
pbouillon profile image
Pierre Bouillon

Hey, thanks for sharing!

I think your last part may benefit from a small example showcasing how you achieve your test it in practice 😄

Collapse
 
kenakamu profile image
Kenichiro Nakamura

I need to dig into source code these days to figure out these things as we don't have enough document or our scenario could be a bit unique? Anyway I thought it might be good to share how I found it :D