C# Class PatientPending.Specifications.FakeEventStore

Inheritance: IEventStore
显示文件 Open project: PaulUpson/PatientPending

Public Methods

Method Description
FakeEventStore ( IEnumerable events ) : System
GetAllEvents ( ) : List
GetEventsForAggregate ( System.Guid aggregateId ) : List
PeekChanges ( ) : IList
SaveEvents ( System.Guid aggregateId, IEnumerable events, int expectedVersion ) : void

Method Details

FakeEventStore() public method

public FakeEventStore ( IEnumerable events ) : System
events IEnumerable
return System

GetAllEvents() public method

public GetAllEvents ( ) : List
return List

GetEventsForAggregate() public method

public GetEventsForAggregate ( System.Guid aggregateId ) : List
aggregateId System.Guid
return List

PeekChanges() public method

public PeekChanges ( ) : IList
return IList

SaveEvents() public method

public SaveEvents ( System.Guid aggregateId, IEnumerable events, int expectedVersion ) : void
aggregateId System.Guid
events IEnumerable
expectedVersion int
return void