Inheritance: IODataResponseMessage
        public void MetadataTest()
        {
            var testMessage = new InMemoryResponse();

            var converter = new SodaToODataConverter(testMessage, new Uri("http://fake"), TestData.TopLevelSodaResponse);
            var payload = new JsonPayload(TestData.SodaResponseFor(TestData.TopLevelSodaResponse));
            converter.ConvertMetadata(RelativeUriOData, RelativeUriSoda, payload);

            ApproveResponse(testMessage);
        }
        public void FeedTestJson()
        {
            var testMessage = new InMemoryResponse();
            testMessage.SetHeader("Content-Type", "application/json");

            var converter = new SodaToODataConverter(testMessage, new Uri("http://fake"), TestData.TopLevelSodaResponse);
            var payload = new JsonPayload(TestData.SodaResponseFor(TestData.TopLevelSodaResponse));
            converter.ConvertFeed(RelativeUriOData, RelativeUriSoda, payload, FeedUpdateTime);

            ApproveResponse(testMessage);
        }
 private static void ApproveResponse(InMemoryResponse testMessage)
 {
     Approvals.Approve(Encoding.UTF8.GetString(testMessage.Stream.ToArray()) + "\r\n");
 }