Table of Contents

Class ControlTestResult

Namespace
Excalibur.Compliance
Assembly
Excalibur.Compliance.Abstractions.dll

Result of a control test.

public record ControlTestResult : IEquatable<ControlTestResult>
Inheritance
ControlTestResult
Implements
Inherited Members

Properties

ControlId

Control tested.

public required string ControlId { get; init; }

Property Value

string

Evidence

Evidence collected during testing.

public IReadOnlyList<EvidenceItem> Evidence { get; init; }

Property Value

IReadOnlyList<EvidenceItem>

Exceptions

Exception details.

public IReadOnlyList<TestException> Exceptions { get; init; }

Property Value

IReadOnlyList<TestException>

ExceptionsFound

How many exceptions the test found, or null when no test ran.

public int? ExceptionsFound { get; init; }

Property Value

int?

Remarks

Zero here is not the same kind of statement as zero items tested. A count of findings asserts that a search happened and returned nothing, which is the most favourable reading available and the one an auditor is most likely to act on. Where no test ran there is no such number, and the honest value is absent rather than zero.

ItemsTested

How many items were actually examined.

public required int ItemsTested { get; init; }

Property Value

int

Remarks

Zero is a true statement and the type needs no other state: no items were examined. This must never be populated from the sample size that was REQUESTED — that number is in Parameters, and echoing it here reports a sample that was never drawn.

Notes

Why the test produced this outcome, when the outcome alone does not say.

public string? Notes { get; init; }

Property Value

string

Required reading for NotTested, which states that no test ran but not why; null when the outcome is self-explanatory.

Outcome

Overall test outcome.

public required TestOutcome Outcome { get; init; }

Property Value

TestOutcome

Parameters

Test parameters used.

public required ControlTestParameters Parameters { get; init; }

Property Value

ControlTestParameters