Пример #1
0
        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");
        }
Пример #2
0
        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");
        }