This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A repository. | |
public interface IPurchaseOrderRepository | |
{ | |
PurchaseOrder Get(string id); | |
// The commit method would likely be moved to a Unit of Work managed by infrastructure. | |
void Commit(); | |
} | |
// A marker interface for a domain event. | |
public interface IDomainEvent { } |