コード例 #1
0
    private static string GetMetadataDocument()
    {
#if MOCK_HTTP
        return(MetadataResolver.GetMetadataDocument("Metadata.xml"));
#else
        return(null);
#endif
    }
コード例 #2
0
 public static ODataClient GetClient(string metadataFilename, string responseFilename)
 {
     return(new ODataClient(new ODataClientSettings(new Uri("http://localhost/odata"))
     {
         MetadataDocument = MetadataResolver.GetMetadataDocument(metadataFilename),
         IgnoreUnmappedProperties = true
     }.WithHttpResponses(new[] { @"..\..\..\..\..\..\..\Resources\" + responseFilename })));
 }