private void GetNonExistentImposter()
 {
     try
     {
         _retrievedImposter = _client.GetImposter(NonExistentImposterPort);
     }
     catch (ImposterNotFoundException e)
     {
         _getImposterException = e;
     }
 }
        private void VerifyImposterWasCalled()
        {
            _retrievedImposter = _client.GetImposter(ImposterPort);

            _retrievedImposter.NumberOfRequests.Should().Be(1);
            var receivedRequest = _retrievedImposter.Requests[0];

            receivedRequest.Path.Should().Be("/customers");
            receivedRequest.QueryParameters["id"].Should().Be("123");
            receivedRequest.Body.Should()
                .Be("<TestData>\r\n  <Name>Bob</Name>\r\n  <Email>[email protected]</Email>\r\n</TestData>");
            receivedRequest.Method.Should().Be(Method.Post);
            receivedRequest.Timestamp.Should().NotBe(default(DateTime));
            receivedRequest.RequestFrom.Should().NotBe(string.Empty);
            receivedRequest.Headers["Content-Type"].Should().Be("text/xml");
            receivedRequest.Headers["Content-Length"].Should().Be("75");
        }
 private void GetImposter()
 {
     _retrievedImposter = _client.GetImposter(ImposterPort);
 }