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

Add support for ENUM keys #961

Merged
merged 4 commits into from
Oct 10, 2017
Merged

Conversation

bhaarathms
Copy link
Contributor

@bhaarathms bhaarathms commented Sep 27, 2017

Issues

Do not know if there is an issue open for this.

Description

Currently only simple keys are supported. Adding ability to support Enum keys.

Checklist (Uncheck if it is not completed)

  • [ X ] Test cases added
  • [ ] Build and test with one-click build and test script passed

Additional work necessary

No

@xuzhg xuzhg self-assigned this Oct 3, 2017
@xuzhg
Copy link
Member

xuzhg commented Oct 3, 2017

@bhaarathms Would you please help add test cases related to your change?

@bhaarathms
Copy link
Contributor Author

@xuzhg Added tests covering all the changes made in this PR

@@ -186,6 +186,15 @@ public void GetOrCreateEdmTypeShouldThrowIfTypeHasObjectProperty()
test.ShouldThrow<InvalidOperationException>().WithMessage(Strings.ClientType_NoSettableFields("System.Object"));
}

[TestMethod]
public void GetOrCreateEdmTypeShouldShouldWorkForEnumTypes()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

double "should"

Copy link
Contributor Author

@bhaarathms bhaarathms Oct 4, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xuzhg fixed it

@manivannanse manivannanse merged commit 58e999d into OData:master Oct 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants