public void when_GetReceipt_is_called_then_we_should_have_called_the_filereceipt_get_once() { using (HttpTest httpTest = new HttpTest()) { httpTest.RespondWith(200, string.Empty); var signhostApiClient = new SignHostApiClient(settings); var receipt = signhostApiClient.GetReceipt("transaction ID"); httpTest.ShouldHaveCalled($"{settings.Endpoint}file/receipt/*") .WithVerb(HttpMethod.Get) .Times(1); } }