public void RegisterDelete(IAggregateRoot aggregateRoot, IUnitWorkRepository repository) { if (!_deleteggregates.ContainsKey(aggregateRoot)) { _deleteggregates.Add(aggregateRoot, repository); } }
public void RegisterSave(IAggregateRoot aggregateRoot, IUnitWorkRepository repository) { if (!_saveAggregates.ContainsKey(aggregateRoot)) { _saveAggregates.Add(aggregateRoot, repository); } }
public void Add(IAggregateRoot aggregateRoot, IUnitWorkRepository repository) { _internalCollection.Add(new AggregateUnit { AggregateRoot = aggregateRoot, UnitWork = repository }); }