Class FakesTable
The fakes of a run: which external calls are answered in place of running, and how.
public sealed record FakesTable : IEquatable<FakesTable>
- Inheritance
-
FakesTable
- Implements
- Inherited Members
Remarks
A call is matched against Rows in order, and the first row whose target, arguments and invocation match it acts. A call of a target no row names runs as it would without fakes, and is not recorded.
Constructors
FakesTable(IReadOnlyList<FakeRow>)
The fakes of a run: which external calls are answered in place of running, and how.
public FakesTable(IReadOnlyList<FakeRow> Rows)
Parameters
RowsIReadOnlyList<FakeRow>The rows, in the order they are tried.
Remarks
A call is matched against Rows in order, and the first row whose target, arguments and invocation match it acts. A call of a target no row names runs as it would without fakes, and is not recorded.
Properties
Empty
The table with no rows: every call runs.
public static FakesTable Empty { get; }
Property Value
Rows
The rows, in the order they are tried.
public IReadOnlyList<FakeRow> Rows { get; init; }