private async Task VerifyImposterHasBeenDeleted() { MountebankException exception = null; try { await _client.GetHttpImposterAsync(ImposterPort).ConfigureAwait(false); } catch (ImposterNotFoundException e) { exception = e; } exception.Should().NotBeNull("Expected imposter to have been deleted"); exception.Message.Should().Contain("no such resource"); }
private void VerifyImposterHasBeenDeleted() { MountebankException exception = null; try { var imposter = _client.GetImposter(ImposterPort); } catch (ImposterNotFoundException e) { exception = e; } exception.Should().NotBeNull("Expected imposter to have been deleted"); exception.Message.Should().Contain("no such resource"); }