コード例 #1
0
 public ODataConverterTest()
 {
     // This line gives us only the reference edmmodel.
     // It isn't used in the converter.
     CsdlReader.TryParse(XmlReader.Create(new StringReader(sampleMetadataDocument)), out model, out _);
     converter = new ODataConverter();
     Item      = converter.ConvertCollection(sampleMetadataDocument);
 }
コード例 #2
0
 public void ConvertingAWrongMetadataDocumentThrowsAnError()
 {
     Assert.Throws <ODataException>(() => converter.ConvertCollection("random string"));
 }