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