Definition
Package: MessageHandler.EventSourcing.Testing
Assembly: MessageHandler.EventSourcing.Testing
Namespace: MessageHandler.EventSourcing.Testing
Class: TestProjectionRestorer
Overloads
Method | Description |
---|---|
Restore(string) | Restore all models for a stream type. |
Restore(string, Func<string,T>) | Restore all models for a stream type. |
Restore(string, string) | Restore a specific model for a stream type. |
Restore(string, string, Func<string,T>) | Restore a specific model for a stream type. |
Restore(IEnumerable |
Restore a specific model for a stream of events. |
Restore(IEnumerable |
Restore a specific model for a stream of events. |
Restore(string)
Restore all models for a stream type.
Parameters
streamType: System.String
The stream type.
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IDictionary>
Restore(string, Func<string,T>)
Restore all models for a stream type.
Parameters
streamType: System.String
The stream type.
factory: System.Func
A factory which instantiates the model.
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IDictionary>
Restore(string, string)
Restore a specific model for a stream type.
Parameters
streamType: System.String
The stream type
id: System.String
The id of the model
Returns
System.Threading.Tasks.Task
Restore(string, string, Func<string,T>)
Restore a specific model for a stream type.
Parameters
streamType: System.String
The stream type
id: System.String
The id of the model
factory: System.Func
A factory to construct the model
Returns
System.Threading.Tasks.Task
Restore(IEnumerable)
Restore a specific model for a stream of events.
Parameters
events: System.Collections.Generic.IEnumerable
The stream of events
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IDictionary>
Restore(IEnumerable, Func<string,T>)
Restore a specific model for a stream of events.
Parameters
events: System.Collections.Generic.IEnumerable
The stream of events
factory: System.Func
A factory to construct the model
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IDictionary>