Skip to content

Commit

Permalink
Merging attributes UriFunction and OriginalName on test classes
Browse files Browse the repository at this point in the history
  • Loading branch information
uffelauesen committed Aug 28, 2023
1 parent 2eacc00 commit 8ba52f3
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand All @@ -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)]
Expand Down

0 comments on commit 8ba52f3

Please sign in to comment.