Table of Contents

Class BooleanResultsCollection<TModel, TMetadata>

Namespace
Motiv
Assembly
Motiv.dll

A collection of boolean results for a set of models.

public class BooleanResultsCollection<TModel, TMetadata> : IEnumerable<TModel>, IEnumerable

Type Parameters

TModel

The type of the models.

TMetadata

The metdata values type in the boolean results.

Inheritance
BooleanResultsCollection<TModel, TMetadata>
Implements
IEnumerable<TModel>
Inherited Members
Extension Methods

Constructors

BooleanResultsCollection(IEnumerable<BooleanResult<TModel, TMetadata>>)

Initializes a new instance of the BooleanResultsCollection<TModel, TMetadata> class.

public BooleanResultsCollection(IEnumerable<BooleanResult<TModel, TMetadata>> results)

Parameters

results IEnumerable<BooleanResult<TModel, TMetadata>>

The boolean results for the models.

Properties

Assertions

The aggregated boolean outcome.

public IEnumerable<string> Assertions { get; }

Property Value

IEnumerable<string>

Models

The models that were evaluated.

public IEnumerable<TModel> Models { get; }

Property Value

IEnumerable<TModel>

Results

The raw boolean results.

public IEnumerable<BooleanResultBase<TMetadata>> Results { get; }

Property Value

IEnumerable<BooleanResultBase<TMetadata>>

Values

The collection of metadata values from the boolean results.

public IEnumerable<TMetadata> Values { get; }

Property Value

IEnumerable<TMetadata>

Methods

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<TModel> GetEnumerator()

Returns

IEnumerator<TModel>

An enumerator that can be used to iterate through the collection.