public void EntityReferenceCannotAppearAfterProperty()
 {
     PathFunctionalTestsUtil.RunParseErrorPath <ODataUnrecognizedPathException>("People(1)/SSN/$ref", ODataErrorStrings.RequestUriProcessor_ValueSegmentAfterScalarPropertySegment("SSN", "$ref"));
 }
 public void CountCannotAppearAfterEntityReferenceCollectionProperties()
 {
     PathFunctionalTestsUtil.RunParseErrorPath <ODataUnrecognizedPathException>("Dogs(1)/MyPeople/$ref/$count", ODataErrorStrings.RequestUriProcessor_MustBeLeafSegment(UriQueryConstants.RefSegment));
 }
 public void EntityReferenceCannotAppearAfterBatch()
 {
     // Note: Case where $ref is after batch reference is in PathFunctionaltests.cs (EntityReferenceCannotAppearAfterBatchReference)
     PathFunctionalTestsUtil.RunParseErrorPath <ODataUnrecognizedPathException>("$batch/$ref", ODataErrorStrings.RequestUriProcessor_MustBeLeafSegment(UriQueryConstants.BatchSegment));
 }
 public void KeyLookupCannotAppearAfterEntityReference()
 {
     PathFunctionalTestsUtil.RunParseErrorPath("Dogs(1)/$ref(1)", ODataErrorStrings.RequestUriProcessor_SyntaxError);
 }
 public void CannotGoToPropetyOnEntityReference()
 {
     PathFunctionalTestsUtil.RunParseErrorPath <ODataUnrecognizedPathException>("People(7)/MyDog/$ref/Color", ODataErrorStrings.RequestUriProcessor_MustBeLeafSegment(UriQueryConstants.RefSegment));
 }
 public void EntityReferenceCannotAppearAfterMetadata()
 {
     PathFunctionalTestsUtil.RunParseErrorPath <ODataUnrecognizedPathException>("$metadata/$ref", ODataErrorStrings.RequestUriProcessor_MustBeLeafSegment("$metadata"));
 }
 public void EntityReferenceCannotAppearAfterEachSegment()
 {
     PathFunctionalTestsUtil.RunParseErrorPath("People/$each/$ref", ODataErrorStrings.RequestUriProcessor_OnlySingleOperationCanFollowEachPathSegment);
 }
 public void EntityReferenceCannotAppearAfterBoundAction()
 {
     PathFunctionalTestsUtil.RunParseErrorPath("People/Fully.Qualified.Namespace.AdoptShibaInu/$ref", ODataErrorStrings.RequestUriProcessor_MustBeLeafSegment("Fully.Qualified.Namespace.AdoptShibaInu"));
 }
 public void EntityReferenceCannotAppearAfterAValueSegment()
 {
     PathFunctionalTestsUtil.RunParseErrorPath <ODataUnrecognizedPathException>("People(1)/$value/$ref", ODataErrorStrings.RequestUriProcessor_MustBeLeafSegment("$value"));
 }
 public void KeyLookupCannotAppearAfterCountAfterEntityReference()
 {
     PathFunctionalTestsUtil.RunParseErrorPath("Dogs(1)/MyPeople/$ref/$count(1)", ODataErrorStrings.RequestUriProcessor_MustBeLeafSegment(UriQueryConstants.RefSegment));
 }
 public void EntityReferenceCannotAppearAfterReferenceSegment()
 {
     PathFunctionalTestsUtil.RunParseErrorPath("People/$ref/$ref", ODataErrorStrings.RequestUriProcessor_MustBeLeafSegment("$ref"));
 }
 public void EntityReferenceCannotAppearAfterAComplexProperty()
 {
     PathFunctionalTestsUtil.RunParseErrorPath("People(1)/MyAddress/$ref", ODataErrorStrings.PathParser_EntityReferenceNotSupported("MyAddress"));
 }
 public void EntityReferenceCannotAppearAfterAnEntitySet()
 {
     // TODO: We can improve error message drastically when we refactor path parsing
     PathFunctionalTestsUtil.RunParseErrorPath("People/$ref", ODataErrorStrings.PathParser_EntityReferenceNotSupported("People"));
 }