public void DeleteRestrictions_should_be_properly_parsed() { OdcmReader odata4Reader = new OdcmReader(); OdcmModel model = odata4Reader.GenerateOdcmModel(GetOneNoteEdmModel()); model.EntityContainer.Properties.Should().Contain(prop => prop.Name == "notebooks"); var notebookProperty = model.EntityContainer.Properties.First(prop => prop.Name == "notebooks"); var deleteRestriction = notebookProperty.Annotations.Should() .Contain(an => an.Name == "DeleteRestrictions" && an.Namespace == "Org.OData.Capabilities.V1").Which; var annotationValue = deleteRestriction.Value.Should().BeOfType<DeleteRestrictionsType>().Which; annotationValue.Deletable.Should().BeFalse(); annotationValue.NonDeletableNavigationProperties.Should().HaveCount(2).And.Contain("sectionGroups").And.Contain("sections"); }
public Given_complex_types_in_a_valid_edmx_when_passed_to_the_ODataReader() { _odcmReader = new OdcmReader(); }
public Given_complex_types_in_a_valid_edmx_when_passed_to_the_ODataReader() { _odcmReader = new OdcmReader(); }
public Given_typedefintion_types_in_a_valid_edmx_when_passed_to_the_ODataReader() { _odcmReader = new OdcmReader(); }
public Given_a_valid_edmx_with_Description_Annotations() { _odcmReader = new OdcmReader(); }
public Given_a_valid_edmx_with_Description_Annotations() { _odcmReader = new OdcmReader(); }
public Given_typedefintion_types_in_a_valid_edmx_when_passed_to_the_ODataReader() { _odcmReader = new OdcmReader(); }