Namespace CSF.Validation.RuleExecution
Classes
CircularDependency
A model which describes a singular circular dependency.
CircularDependencyDetector
A service which detects circular dependencies between executable validation rules.
CircularDependencyPreventingRulesWithDependenciesDecorator
A decorator for the service IGetsAllExecutableRulesWithDependencies which returns the result from the wrapped implementation but additionally throws ValidationException if any circular dependencies are found.
EnumerableItemProvider
A service which gets an enumerable collection of items to be validated.
ErrorGetValueToBeValidatedResponse
A GetValueToBeValidatedResponse which indicates failure and that an error should be added to the results.
ExecutableRule
A model for a rule which may be executed upon a validated value.
ExecutableRuleAndDependencies
A model for an ExecutableRule along with all of its dependencies.
ExecutableRulesAndDependenciesProvider
Service which gets a collection of executable rules matched with the dependencies for those rules.
ExecutableRulesFromValidatedValueProvider
A service that gets a flattened collection of executable rules from a manifest value and the object to be validated.
GetValueToBeValidatedResponse
A response/result type for the IGetsValueToBeValidated service.
IgnoredGetValueToBeValidatedResponse
A GetValueToBeValidatedResponse which indicates failure but that the failure should be ignored.
InstrumentingSingleRuleExecutorDecorator
Decorator for IExeucutesSingleRule which adds instrumentation data to the rule result if applicable.
ParallelRuleExecutor
An implementation of IExecutesAllRules which executes validation rules in parallel.
ResultsForErroredValuesExecutionDecorator
A decorator for IExecutesAllRules which adds additional results to the output for any validated values which raised an error when they were retrieved.
ResultsForRulesWithFailedDependenciesExecutionDecorator
A decorator for the interface IExecutesAllRules which populates the rule results for rules which have not been executed because one or more of their dependency rules did not result in a Passed outcome.
RuleExecutionContext
An object which tracks which rules may be executed and which are still awaiting the execution of their dependencies. This may also be used to get a list of the rules which should not be executed because their dependencies failed.
RuleExecutionContextFactory
A factory service to get instances of IRuleExecutionContext.
RuleExecutorFactory
A factory service which creates instances of IExecutesAllRules based upon the specified validation options.
SerialRuleExecutor
An implementation of IExecutesAllRules which executes each rule in serial with no parallelisation.
SingleRuleExecutor
A service that executes a single validation rule and gets its result.
SingleRuleExecutorFactory
A factory service for implementations of IExeucutesSingleRule.
SuccessfulGetValueToBeValidatedResponse
A GetValueToBeValidatedResponse which indicates success.
ValidatedValue
A model which represents a value which is being validated by the validator.
ValidatedValueBasis
A small model used as an intermediate state in order to get a ValidatedValue. It holds the information required in order to get the validated value at a point in the future.
ValidatedValueFactory
A service which gets a ValidatedValue from a ManifestItem and an object to be validated.
ValidatedValueFromBasisFactory
A service which creates an instance of ValidatedValue from a ValidatedValueBasis.
ValueAccessExceptionBehaviourProvider
A service which resolves the effective accessor-exception-handling behaviour.
ValueToBeValidatedProvider
A service which gets the value to be validated: the "actual" value.
Interfaces
IDetectsCircularDependencies
An object which detects the presence of circular dependencies between executable rules.
IExecutesAllRules
An object which executes all of the validation rules using an async API and returns a collection of results.
IExeucutesSingleRule
An object which can execute a single validation rule and get its result.
IGetsAccessorExceptionBehaviour
An object which can get the behaviour to use for unhandled exceptions thrown by accessor functions.
IGetsAllExecutableRules
An object which can get all of the executable rules from a manifest value and object to be validated.
IGetsAllExecutableRulesWithDependencies
An object which gets a collection of ExecutableRuleAndDependencies from a manifest value and an object to be validated.
IGetsEnumerableItemsToBeValidated
An object which can get a System.Collections.Generic.IEnumerable<T> of individual items to be validated, based upon an object which should implement the correct enumerable interface and an intended type.
IGetsRuleExecutionContext
An object which can get an instance of IRuleExecutionContext for a specified collection of rules.
IGetsRuleExecutor
An object which gets a service that executes validation rules.
IGetsSingleRuleExecutor
An object which can get a service instance suitable for executing a single validation rule.
IGetsValidatedValue
An object which gets a ValidatedValue (including a hierarchy of descendent values) from a ManifestItem and the object to be validated.
IGetsValidatedValueFromBasis
An object which can get a ValidatedValue from a ValidatedValueBasis.
IGetsValueToBeValidated
An object which gets the value to be validated: the "actual" value.
IRuleExecutionContext
An object which provides context for the process of executing validation rules.