From 8ba52f3c2201e4d68fbbae59f5eb4b3c108cf114 Mon Sep 17 00:00:00 2001 From: "Lauesen.Uffe UFE" Date: Mon, 28 Aug 2023 10:35:26 +0200 Subject: [PATCH] Merging attributes UriFunction and OriginalName on test classes --- .../DataServiceQueryProviderTests.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/test/FunctionalTests/Microsoft.OData.Client.Tests/DataServiceQueryProviderTests.cs b/test/FunctionalTests/Microsoft.OData.Client.Tests/DataServiceQueryProviderTests.cs index c9bbf4a803..7274c6e668 100644 --- a/test/FunctionalTests/Microsoft.OData.Client.Tests/DataServiceQueryProviderTests.cs +++ b/test/FunctionalTests/Microsoft.OData.Client.Tests/DataServiceQueryProviderTests.cs @@ -378,8 +378,7 @@ private class Product public bool InstanceFunction(string parameter) { return true; } - [OriginalName("sale")] - [UriFunction] + [UriFunction, OriginalName("sale")] public int YearSale(int year) => throw new NotSupportedException(); [UriFunction(true)] @@ -391,12 +390,10 @@ public bool Test(string data) private static class UriFunctions { - [OriginalName("now")] - [UriFunction] + [UriFunction, OriginalName("now")] public static DateTimeOffset ServerNow() => throw new NotSupportedException(); - [OriginalName("date")] - [UriFunction] + [UriFunction, OriginalName("date")] public static Edm.Date ServerDate(DateTimeOffset value) => throw new NotSupportedException(); [UriFunction(true)]