Class TestSagaUnitOfWork
Inheritance
System.Object
TestSagaUnitOfWork
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Cqrs.Tests.Substitutes
Assembly: Cqrs.Tests.dll
Syntax
public class TestSagaUnitOfWork : ISagaUnitOfWork<ISingleSignOnToken>, ISagaUnitOfWork<Guid>
Properties
TestGuidSagasWithAddCountGetCountAndCommitCount
Declaration
public static IDictionary<Guid, Tuple<ISaga<Guid>, int, int, int>> TestGuidSagasWithAddCountGetCountAndCommitCount { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.Guid, System.Tuple<ISaga<System.Guid>, System.Int32, System.Int32, System.Int32>> |
TestSagasWithAddCountGetCountAndCommitCount
Declaration
public static IDictionary<Guid, Tuple<ISaga<ISingleSignOnToken>, int, int, int>> TestSagasWithAddCountGetCountAndCommitCount { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.Guid, System.Tuple<ISaga<ISingleSignOnToken>, System.Int32, System.Int32, System.Int32>> |
Methods
Add<TSaga>(TSaga)
Add an item into the ISagaUnitOfWork<TAuthenticationToken> ready to be committed.
Declaration
public void Add<TSaga>(TSaga saga)where TSaga : ISaga<Guid>
Parameters
Type | Name | Description |
---|---|---|
TSaga | saga |
Type Parameters
Name | Description |
---|---|
TSaga |
Implements
Commit()
Commit any changed Saga<TAuthenticationToken> added to this ISagaUnitOfWork<TAuthenticationToken> via Add<TSaga>(TSaga)
Declaration
public void Commit()
Implements
Get<TSaga>(Guid, Nullable<Int32>)
Get an item from the ISagaUnitOfWork<TAuthenticationToken> if it has already been loaded.
Declaration
public TSaga Get<TSaga>(Guid id, int ? expectedVersion = null)where TSaga : ISaga<Guid>
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | |
System.Nullable<System.Int32> | expectedVersion |
Returns
Type | Description |
---|---|
TSaga |
Type Parameters
Name | Description |
---|---|
TSaga |
Implements
Explicit Interface Implementations
ISagaUnitOfWork<ISingleSignOnToken>.Add<TSaga>(TSaga)
Add an item into the ISagaUnitOfWork<TAuthenticationToken> ready to be committed.
Declaration
void ISagaUnitOfWork<ISingleSignOnToken>.Add<TSaga>(TSaga saga)where TSaga : ISaga<ISingleSignOnToken>
Parameters
Type | Name | Description |
---|---|---|
TSaga | saga |
Type Parameters
Name | Description |
---|---|
TSaga |
Implements
ISagaUnitOfWork<ISingleSignOnToken>.Get<TSaga>(Guid, Nullable<Int32>)
Get an item from the ISagaUnitOfWork<TAuthenticationToken> if it has already been loaded.
Declaration
TSaga ISagaUnitOfWork<ISingleSignOnToken>.Get<TSaga>(Guid id, int ? expectedVersion)where TSaga : ISaga<ISingleSignOnToken>
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | |
System.Nullable<System.Int32> | expectedVersion |
Returns
Type | Description |
---|---|
TSaga |
Type Parameters
Name | Description |
---|---|
TSaga |