/// <inheritdoc />
        public virtual ISchemaValidator WithSchemaConsumer(ISchemaConsumer consumer)
        {
            this.Consumer = consumer.ThrowIfNullOrDefault();

            return(this);
        }
        /// <summary>
        /// Adds the <see cref="ISchemaConsumer"/> to the exception.
        /// </summary>
        /// <param name="consumer"><see cref="ISchemaConsumer"/> instance.</param>
        /// <returns>Returns the <see cref="SchemaNotFoundException"/>.</returns>
        public virtual SchemaNotFoundException WithSchemaConsumer(ISchemaConsumer consumer)
        {
            this.Consumer = consumer.ThrowIfNullOrDefault();

            return(this);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="SchemaValidator"/> class.
 /// </summary>
 /// <param name="consumer"><see cref="ISchemaConsumer"/> instance.</param>
 public SchemaValidator(ISchemaConsumer consumer)
     : this()
 {
     this.Consumer = consumer.ThrowIfNullOrDefault();
 }