public void SetUp() { _bus = new InMemoryBus(string.Format("bus_{0}", _serverEndPoint.Port)); _service = new HttpService(_bus, new[] { _serverEndPoint.ToHttpUrl() }); _client = new HttpAsyncClient(); HttpBootstrap.Subscribe(_bus, _service); }
public void TearDown() { HttpBootstrap.Unsubscribe(_bus, _service); _service.Shutdown(); }