/// <summary>
        /// Called to get the expected result of the test.
        /// </summary>
        /// <param name="testConfiguration">The test configuration to use.</param>
        /// <returns>The expected result.</returns>
        protected override ReaderTestExpectedResult GetExpectedResult(ReaderTestConfiguration testConfiguration)
        {
            var baseResult = base.GetExpectedResult(testConfiguration) as PayloadReaderTestExpectedResult;
            var aggregateValidator = new AggregateODataObjectModelValidator(baseResult.ODataObjectModelValidator as AggregateODataObjectModelValidator);
            aggregateValidator.AddValidator(
                new NavigationLinkIsCollectionPropertyValidator
                {
                    Assert = this.settings.Assert,
                    ExpectedIsCollectionValues = this.ExpectedIsCollectionValues,
                });

            baseResult.ODataObjectModelValidator = aggregateValidator;

            return baseResult;
        }
        /// <summary>
        /// Called to get the expected result of the test.
        /// </summary>
        /// <param name="testConfiguration">The test configuration to use.</param>
        /// <returns>The expected result.</returns>
        protected override ReaderTestExpectedResult GetExpectedResult(ReaderTestConfiguration testConfiguration)
        {
            var baseResult         = base.GetExpectedResult(testConfiguration) as PayloadReaderTestExpectedResult;
            var aggregateValidator = new AggregateODataObjectModelValidator(baseResult.ODataObjectModelValidator as AggregateODataObjectModelValidator);

            aggregateValidator.AddValidator(
                new NavigationLinkIsCollectionPropertyValidator
            {
                Assert = this.settings.Assert,
                ExpectedIsCollectionValues = this.ExpectedIsCollectionValues,
            });

            baseResult.ODataObjectModelValidator = aggregateValidator;

            return(baseResult);
        }
 /// <summary>
 /// Constructor.
 /// </summary>
 public AggregateODataObjectModelValidator(AggregateODataObjectModelValidator original)
 {
     this.validators = new List<IODataObjectModelValidator>(original.validators);
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 public AggregateODataObjectModelValidator(AggregateODataObjectModelValidator original)
 {
     this.validators = new List <IODataObjectModelValidator>(original.validators);
 }