public void Unauthorised_if_signature_is_incorrect() { var payloadSignatureTuple = ContactPayloadGenerator.CreateSamplePayload(1, false, 0); var result = SendPayload(payloadSignatureTuple); Assert.Equal(HttpStatusCode.Unauthorized, result.StatusCode); Assert.Equal(0, _payloadQueue.Length()); }
public void Can_post_to_webhook_receiver_url() { var payloadSignatureTuple = ContactPayloadGenerator.CreateSamplePayload(1, true, 0); var result = SendPayload(payloadSignatureTuple); Assert.True(result.IsSuccessStatusCode); Assert.Equal(1, _payloadQueue.Length()); }