Esempio n. 1
0
 public void ValidationShouldFailIfNavigationTypeIsACollectionButElementTypeDoesNotExist()
 {
     this.ValidateNavigationWithExpectedErrors(@"<NavigationProperty Name=""Navigation"" Type=""Collection(Fake.Nonexistent)"" />",
                                               EdmErrorCode.BadUnresolvedEntityType,
                                               ErrorStrings.Bad_UnresolvedEntityType("Fake.Nonexistent"));
 }
Esempio n. 2
0
 public void ValidationShouldFailIfNavigationTypeIsPrimitiveCollectionType()
 {
     this.ValidateNavigationWithExpectedErrors(@"<NavigationProperty Name=""Navigation"" Type=""Collection(Edm.Int32)"" />",
                                               EdmErrorCode.BadUnresolvedEntityType,
                                               ErrorStrings.Bad_UnresolvedEntityType("Edm.Int32"));
 }