This commit is contained in:
Zeeshaun
2026-03-13 09:11:35 -05:00
parent f004c8205a
commit c2d6bda458
197 changed files with 14970 additions and 0 deletions
@@ -0,0 +1,27 @@
using LCU.API.Internal.DocumentLib.Containers;
namespace OwnerNumberMigrationTest.TestDoubles;
public class FakeMigrationObserver : IObserver<DocumentInformation>
{
public List<(DocumentInformation doc, DateTime started)> Documents { get; } = new();
public List<Exception> Errors { get; } = new();
public List<DateTime> Completions { get; } = new();
public void OnCompleted()
{
Completions.Add(DateTime.Now);
}
public void OnError(Exception error)
{
Errors.Add(error);
}
public void OnNext(DocumentInformation value)
{
Documents.Add((value, DateTime.Now));
}
}