public Task Update(CaseFileAggregate caseFile, CancellationToken token) { _caseFiles.Remove(_caseFiles.First(a => a.AggregateId == caseFile.AggregateId)); _caseFiles.Add((CaseFileAggregate)caseFile.Clone()); return Task.CompletedTask; }
public Task Add(CaseFileAggregate caseFile, CancellationToken token) { _caseFiles.Add((CaseFileAggregate)caseFile.Clone()); return Task.CompletedTask; }