public void When_creating_request_It_creates_a_http_delete_request_without_json() { var request = new RemoveCustomerProfileCardRequest(ProfileId, _cardId); var httpRequest = SUT.Create(request); httpRequest.ShouldBe().DeleteWithNoJson(); }
public virtual void RemoveCustomerProfileCard(RemoveCustomerProfileCardRequest request) { Ensure.That(request, "request").IsNotNull(); var httpRequest = RemoveCustomerProfileCardHttpRequestFactory.Create(request); var httpResponse = Connection.Send(httpRequest); ResponseFactory.Create <RemoveCustomerProfileCardResponse>(httpResponse); }
public void When_creating_request_It_should_render_relative_url_with_profile_and_card_id() { var request = new RemoveCustomerProfileCardRequest(ProfileId, _cardId); var httpRequest = SUT.Create(request); httpRequest.ShouldBe().DeleteAgainst( "/customerprofiles/{0}/cards/{1}", ProfileId, _cardId.ToString("n")); }