private TimeStamps AssertTimeStampsForSecondReplication(TimeStamps initialTimeStamps , ITestableReplicationProviderInside provider) { TimeStamps timeStamps = provider.TimeStamps(); Assert.IsNotNull(timeStamps); Assert.AreEqual(initialTimeStamps.Commit(), timeStamps.From()); Assert.IsGreater(timeStamps.From(), timeStamps.To()); Assert.AreEqual(timeStamps.To() + 1, timeStamps.Commit()); return timeStamps; }
private TimeStamps AssertTimeStampsForFirstReplication(ITestableReplicationProviderInside provider) { TimeStamps timeStamps = provider.TimeStamps(); Assert.IsNotNull(timeStamps); Assert.AreEqual(0, timeStamps.From()); Assert.IsGreater(0, timeStamps.To()); Assert.AreEqual(timeStamps.To() + 1, timeStamps.Commit()); return timeStamps; }
private TimeStamps AssertTimeStampsForSecondReplication(TimeStamps initialTimeStamps , ITestableReplicationProviderInside provider) { TimeStamps timeStamps = provider.TimeStamps(); Assert.IsNotNull(timeStamps); Assert.AreEqual(initialTimeStamps.Commit(), timeStamps.From()); Assert.IsGreater(timeStamps.From(), timeStamps.To()); Assert.AreEqual(timeStamps.To() + 1, timeStamps.Commit()); return(timeStamps); }
private TimeStamps AssertTimeStampsForFirstReplication(ITestableReplicationProviderInside provider) { TimeStamps timeStamps = provider.TimeStamps(); Assert.IsNotNull(timeStamps); Assert.AreEqual(0, timeStamps.From()); Assert.IsGreater(0, timeStamps.To()); Assert.AreEqual(timeStamps.To() + 1, timeStamps.Commit()); return(timeStamps); }