コード例 #1
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);
 }
コード例 #2
0
 public void SetUp()
 {
     Snapshot = new TestSnapshot {
         EventSourceId = Guid.NewGuid(), EventSourceVersion = 1, Name = "TestName"
     };
     SnapshotStore.SaveShapshot(Snapshot);
     _retrieved = SnapshotStore.GetSnapshot(Snapshot.EventSourceId);
 }
コード例 #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);
 }
コード例 #4
0
 public bool Equals(TestSnapshot other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.Name, Name));
 }
コード例 #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));
 }
コード例 #6
0
 public bool Equals(TestSnapshot other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other.Name, Name);
 }
コード例 #7
0
 public void SetUp()
 {
     Snapshot = new TestSnapshot { EventSourceId = Guid.NewGuid(), EventSourceVersion = 1, Name = "TestName" };
     SnapshotStore.SaveShapshot(Snapshot);
     _retrieved = SnapshotStore.GetSnapshot(Snapshot.EventSourceId);
 }