Table of Contents

Struct RuleInfo

Namespace
NRules.Testing
Assembly
NRules.Testing.dll

Information about a rule under test.

public struct RuleInfo
Inherited Members

Constructors

RuleInfo(IRuleDefinition)

Initializes a new instance of the RuleInfo class.

public RuleInfo(IRuleDefinition definition)

Parameters

definition IRuleDefinition

Rule's definition in a canonical form.

RuleInfo(Type, object, IRuleDefinition)

Initializes a new instance of the RuleInfo class.

public RuleInfo(Type type, object instance, IRuleDefinition definition)

Parameters

type Type

CLR type that contains rule's definition using Fluent DSL.

instance object

Instance of the rule's type.

definition IRuleDefinition

Rule's definition in a canonical form.

Properties

Definition

Rule's definition.

public readonly IRuleDefinition Definition { get; }

Property Value

IRuleDefinition

Instance

Instance of the Rule class that contains the rule's definition using Fluent DSL. This is null if the rule is not defined using Fluent DSL.

public readonly object? Instance { get; }

Property Value

object

Type

CLR type that contains rule's definition using Fluent DSL. This is null if the rule is not defined using Fluent DSL.

public readonly Type? Type { get; }

Property Value

Type