public void GetODataSerializer_ReturnsSameSerializer_ForSameType()
        {
            // Arrange
            DefaultODataSerializerProvider serialierProvider = new DefaultODataSerializerProvider();
            HttpContext context = CreateHttpContext(serialierProvider);

            // Act
            ODataSerializer firstSerializer  = serialierProvider.GetODataPayloadSerializer(context, typeof(Product));
            ODataSerializer secondSerializer = serialierProvider.GetODataPayloadSerializer(context, typeof(Product));

            // Assert
            Assert.Same(firstSerializer, secondSerializer);
        }
        public void GetODataSerializer_Returns_ExpectedSerializerType(Type payloadType, Type expectedSerializerType)
        {
            // Arrange
            DefaultODataSerializerProvider serialierProvider = new DefaultODataSerializerProvider();
            HttpContext context = CreateHttpContext(serialierProvider);

            // Act
            ODataSerializer serializer = serialierProvider.GetODataPayloadSerializer(context, payloadType);

            // Assert
            Assert.NotNull(serializer);
            Assert.IsType(expectedSerializerType, serializer);
        }