Beispiel #1
0
 public virtual void Store(ITestableReplicationProviderInside provider)
 {
     provider.StoreNew(r4);
     provider.StoreNew(r3);
     provider.StoreNew(r2);
     provider.StoreNew(r1);
     provider.StoreNew(r0);
 }
Beispiel #2
0
		public virtual void Store(ITestableReplicationProviderInside provider)
		{
			provider.StoreNew(r4);
			provider.StoreNew(r3);
			provider.StoreNew(r2);
			provider.StoreNew(r1);
			provider.StoreNew(r0);
		}
Beispiel #3
0
        private void Store(IDrsProviderFixture fixture, SimpleListHolder listHolder)
        {
            ITestableReplicationProviderInside provider = fixture.Provider();

            provider.StoreNew(listHolder);
            provider.StoreNew(GetItem(listHolder, "foo"));
            provider.StoreNew(GetItem(listHolder, "foobar"));
            provider.Commit();
            EnsureContents(fixture, listHolder);
        }
        private void StoreToProviderA()
        {
            ITestableReplicationProviderInside providerA = A().Provider();

            providerA.StoreNew(CreateItem());
            providerA.Commit();
        }
Beispiel #5
0
        public virtual void Test()
        {
            ITestableReplicationProviderInside providerA = A().Provider();
            ITestableReplicationProviderInside providerB = B().Provider();

            providerA.StoreNew(new Pilot());
            providerA.Commit();
            IReplicationSession replication = Replication.Begin(providerA, providerB, null, _fixtures
                                                                .reflector);
            TimeStamps initialTimeStampsB = AssertTimeStampsForFirstReplication(providerB);
            IObjectSet modifiedObjects    = providerA.ObjectsChangedSinceLastReplication();

            while (modifiedObjects.HasNext())
            {
                replication.Replicate(modifiedObjects.Next());
            }
            replication.Commit();
            Pilot replicatedPilot = (Pilot)providerB.GetStoredObjects(typeof(Pilot)).Next();
            long  version         = providerB.ObjectVersion(replicatedPilot);

            Assert.AreEqual(initialTimeStampsB.Commit(), version);
            replication = Replication.Begin(providerA, providerB, null, _fixtures.reflector);
            TimeStamps timestampsBAfterReplication = AssertTimeStampsForSecondReplication(initialTimeStampsB
                                                                                          , providerB);

            replication.Commit();
            Pilot pilotStoredAfterReplication = new Pilot();

            providerB.StoreNew(pilotStoredAfterReplication);
            providerB.Commit();
            providerB.WaitForPreviousCommits();
            version = providerB.ObjectVersion(pilotStoredAfterReplication);
            Assert.IsGreater(timestampsBAfterReplication.Commit(), version);
        }
 private void StoreNewAndCommit(ITestableReplicationProviderInside provider, CollectionHolder
                                h1)
 {
     provider.StoreNew(h1);
     provider.Activate(h1);
     provider.Commit();
 }
		private void StoreNewPilotIn(ITestableReplicationProviderInside provider)
		{
			Pilot pilot = new Pilot();
			provider.StoreNew(pilot);
			provider.Commit();
			provider.WaitForPreviousCommits();
		}
        internal virtual void StoreToProviderA()
        {
            ITestableReplicationProviderInside provider = A().Provider();

            provider.StoreNew(template);
            provider.Commit();
            EnsureContent(template, provider);
        }
        private void StoreNewPilotIn(ITestableReplicationProviderInside provider)
        {
            Pilot pilot = new Pilot();

            provider.StoreNew(pilot);
            provider.Commit();
            provider.WaitForPreviousCommits();
        }
			private void StoreNewAndCommit(ITestableReplicationProviderInside provider, CollectionHolder
				 h1)
			{
				provider.StoreNew(h1);
				provider.Activate(h1);
				provider.Commit();
			}