public async Task RequestsCorrectUrl() { var connection = Substitute.For <IApiConnection>(); var client = new FilesClient(connection); await client.Get(123); Received.InOrder(async() => { await connection.Get <File>(Arg.Is <Uri>(u => u.ToString() == "files/123")); }); }