public async Task RequestsCorrectUrl() { var connection = Substitute.For <IApiConnection>(); var client = new WebhooksClient(connection); await client.GetAll(); Received.InOrder(async() => { await connection.GetAll <Webhook>(Arg.Is <Uri>(u => u.ToString() == "webhooks")); }); }