private static string GetMetadataDocument() { #if MOCK_HTTP return(MetadataResolver.GetMetadataDocument("Metadata.xml")); #else return(null); #endif }
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 }))); }