Esempio n. 1
0
		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;
		}
Esempio n. 2
0
		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;
		}
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        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);
        }