public void DeletesCorrectUrl() { var connection = Substitute.For <IApiConnection>(); var client = new WebhooksClient(connection); client.Delete(123); connection.Received().Delete(Arg.Is <Uri>(u => u.ToString() == "webhooks/123")); }
public void DeletesCorrectUrl() { var connection = Substitute.For <IApiConnection>(); var client = new WebhooksClient(connection); client.Delete(123); connection.Received().Delete(Arg.Is <Uri>(u => u.ToString() == "webhooks/123")); }