Exemplo n.º 1
0
 public void RegisterDeletion(Infrastructure.Domain.IAggregateRoot aggregateRoot, IUnitOfWorkRepository repository)
 {
     if (!deletedAggregates.ContainsKey(aggregateRoot))
     {
         deletedAggregates.Add(aggregateRoot, repository);
     }
 }
Exemplo n.º 2
0
 public void PersistDeletionOf(Infrastructure.Domain.IAggregateRoot entity)
 {
     this.Remove((Report)entity);
 }
Exemplo n.º 3
0
 public void PersistUpdateOf(Infrastructure.Domain.IAggregateRoot entity)
 {
     this.Save((Report)entity);
 }
Exemplo n.º 4
0
 public void PersistCreationOf(Infrastructure.Domain.IAggregateRoot entity)
 {
     this.Add((Report)entity);
 }
Exemplo n.º 5
0
 public void PersistDeletionOf(Infrastructure.Domain.IAggregateRoot entity)
 {
     throw new NotImplementedException();
 }