Esempio n. 1
0
        /// <inheritdoc/>
        public override void WriteObject(object graph, ODataMessageWriter messageWriter, ODataSerializerContext writeContext)
        {
            if (messageWriter == null)
            {
                throw Error.ArgumentNull("messageWriter");
            }

            messageWriter.WriteValue(ODataPrimitiveSerializer.ConvertUnsupportedPrimitives(graph));
        }
Esempio n. 2
0
 public void ConvertUnsupportedPrimitives_NonStandardEdmPrimitives(object graph, object result)
 {
     Assert.Equal(
         result,
         ODataPrimitiveSerializer.ConvertUnsupportedPrimitives(graph));
 }
Esempio n. 3
0
 public void ConvertUnsupportedPrimitives_DoesntChangeStandardEdmPrimitives(object graph)
 {
     Assert.Equal(
         graph,
         ODataPrimitiveSerializer.ConvertUnsupportedPrimitives(graph));
 }