public bool Equals(TestSnapshot other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other.Name, Name)
         && Equals(other.EventSourceId, EventSourceId)
         && Equals(other.EventSourceVersion, EventSourceVersion);
 }
Exemplo n.º 2
0
 public void SetUp()
 {
     Snapshot = new TestSnapshot {
         EventSourceId = Guid.NewGuid(), EventSourceVersion = 1, Name = "TestName"
     };
     SnapshotStore.SaveShapshot(Snapshot);
     _retrieved = SnapshotStore.GetSnapshot(Snapshot.EventSourceId);
 }
Exemplo n.º 3
0
 public void SetUp()
 {
     Snapshot = new TestSnapshot {
         EventSourceId = Guid.NewGuid(), EventSourceVersion = 1, Name = "TestName"
     };
     _foldername = Snapshot.EventSourceId.ToString().Substring(0, 2);
     _filename   = Snapshot.EventSourceId.ToString().Substring(2) + ".ss";
     SnapshotStore.SaveShapshot(Snapshot);
 }
Exemplo n.º 4
0
 public bool Equals(TestSnapshot other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.Name, Name));
 }
Exemplo n.º 5
0
 public bool Equals(TestSnapshot other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.Name, Name) &&
            Equals(other.EventSourceId, EventSourceId) &&
            Equals(other.EventSourceVersion, EventSourceVersion));
 }
 public bool Equals(TestSnapshot other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other.Name, Name);
 }
Exemplo n.º 7
0
 public void SetUp()
 {
     Snapshot = new TestSnapshot { EventSourceId = Guid.NewGuid(), EventSourceVersion = 1, Name = "TestName" };
     SnapshotStore.SaveShapshot(Snapshot);
     _retrieved = SnapshotStore.GetSnapshot(Snapshot.EventSourceId);
 }