public async Task DeletesCorrectUrl() { var connection = Substitute.For <IApiConnection>(); var client = new ProductsClient(connection); await client.DeleteFollower(123, 1234); Received.InOrder(async() => { await connection.Delete(Arg.Is <Uri>(u => u.ToString() == "products/123/followers/1234")); }); }