hibri / HttpMock

A library for creating Http servers on the fly in tests and stubbing responses
MIT License
128 stars 44 forks source link

How do I close / dispose the HttpMockRepository ? #96

Closed stigc closed 6 years ago

hibri commented 6 years ago

Hi @stigc You can't dispose the HttpMockRepository as it's static class. I suggest disposing the IHttpServer instance that is returned by HttpMockRepository. This is what holds the TCP socket and and the stubs. Wrap it in a using statement or dispose it in a TearDown.

stigc commented 6 years ago

Thanks