I have a class library which is included some DelegationHandlers, It is simple, get the request, add some headers based on request content and pass the request down.
So what I needed is write unit tests for my library. I'm using .NET Core 2.1 and xunit, I was wondering if there is a way to mock a web server, then I can send a request to this web server using my library and check the result of my request? Any Idea how could I mock a web server (app)? or how could I test my library by sending a http request?