Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constant string in GetAttribute causing a failure in Unit Test #378

Closed
yunusefendi52 opened this issue Oct 6, 2017 · 1 comment
Closed
Labels

Comments

@yunusefendi52
Copy link

yunusefendi52 commented Oct 6, 2017

Non-Constants

[Get("/ajax/origin")]
Task<CitiesRoot> GetOriginCities(); // Test passed

Constants

[Get(Constants.Origin)] // `Constants.Origin` == "/ajax/origin"
Task<CitiesRoot> GetOriginCities(); // Test failed

Perhaps in other attributes too, I haven't try with those attributes.

@bennor
Copy link
Contributor

bennor commented Oct 6, 2017

Constants are not supported for values in Refit's attributes. See #263.

@bennor bennor closed this as completed Oct 6, 2017
@lock lock bot added the outdated label Jun 25, 2019
@lock lock bot locked and limited conversation to collaborators Jun 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants