feat(HistoryTests): add Receiver to provide random receiver
This commit is contained in:
parent
8a22075abe
commit
6863ada4be
@ -21,6 +21,10 @@ public class HistoryTests
|
|||||||
|
|
||||||
private readonly List<(int Id, string EmailAddress)> _receivers = new();
|
private readonly List<(int Id, string EmailAddress)> _receivers = new();
|
||||||
|
|
||||||
|
public (int Id, string EmailAddress) Receiver => _receivers.Count == 0
|
||||||
|
? throw new InvalidOperationException("Receiver list is empty.")
|
||||||
|
: _receivers[Random.Shared.Next(_receivers.Count)];
|
||||||
|
|
||||||
[SetUp]
|
[SetUp]
|
||||||
public async Task Setup()
|
public async Task Setup()
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user