Class TestSnapshotAggregate
Inheritance
System.Object
TestSnapshotAggregate
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 TestSnapshotAggregate : SnapshotAggregateRoot<ISingleSignOnToken, TestSnapshotAggregateSnapshot>, IAggregateRoot<ISingleSignOnToken>
Constructors
TestSnapshotAggregate(Nullable<Guid>)
Declaration
public TestSnapshotAggregate(Guid? id = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Guid> | id |
Properties
Loaded
Declaration
public bool Loaded { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Number
Declaration
public int Number { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Restored
Declaration
public bool Restored { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
CreateSnapshot()
Declaration
protected override TestSnapshotAggregateSnapshot CreateSnapshot()
Returns
Type | Description |
---|---|
TestSnapshotAggregateSnapshot |
Overrides
Cqrs.Snapshots.SnapshotAggregateRoot<Cqrs.Authentication.ISingleSignOnToken, Cqrs.Tests.Substitutes.TestSnapshotAggregateSnapshot>.CreateSnapshot()
DoSomething()
Declaration
public void DoSomething()
RestoreFromSnapshot(TestSnapshotAggregateSnapshot)
Declaration
protected override void RestoreFromSnapshot(TestSnapshotAggregateSnapshot snapshot)
Parameters
Type | Name | Description |
---|---|---|
TestSnapshotAggregateSnapshot | snapshot |
Overrides
Cqrs.Snapshots.SnapshotAggregateRoot<Cqrs.Authentication.ISingleSignOnToken, Cqrs.Tests.Substitutes.TestSnapshotAggregateSnapshot>.RestoreFromSnapshot(Cqrs.Tests.Substitutes.TestSnapshotAggregateSnapshot)