Skip to content

Commit

Permalink
made the domainrepository methods virtual
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrone Groves committed Aug 23, 2011
1 parent 89f4a4f commit a2d24d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SimpleCqrs/Domain/DomainRepository.cs
Expand Up @@ -17,7 +17,7 @@ public DomainRepository(IEventStore eventStore, ISnapshotStore snapshotStore, IE
this.eventBus = eventBus;
}

public TAggregateRoot GetById<TAggregateRoot>(Guid aggregateRootId) where TAggregateRoot : AggregateRoot, new()
public virtual TAggregateRoot GetById<TAggregateRoot>(Guid aggregateRootId) where TAggregateRoot : AggregateRoot, new()
{
var aggregateRoot = new TAggregateRoot();
var snapshot = GetSnapshotFromSnapshotStore(aggregateRootId);
Expand All @@ -34,7 +34,7 @@ public TAggregateRoot GetById<TAggregateRoot>(Guid aggregateRootId) where TAggre
return aggregateRoot;
}

public void Save(AggregateRoot aggregateRoot)
public virtual void Save(AggregateRoot aggregateRoot)
{
var domainEvents = aggregateRoot.UncommittedEvents;

Expand Down

0 comments on commit a2d24d5

Please sign in to comment.