private void ModifyPilotIn(ITestableReplicationProviderInside provider, string newName
			)
		{
			Pilot pilot;
			pilot = (Pilot)provider.GetStoredObjects(typeof(Pilot)).Next();
			pilot.SetName(newName);
			provider.Update(pilot);
			provider.Commit();
			provider.WaitForPreviousCommits();
		}
        private void ModifyPilotIn(ITestableReplicationProviderInside provider, string newName
                                   )
        {
            Pilot pilot;

            pilot = (Pilot)provider.GetStoredObjects(typeof(Pilot)).Next();
            pilot.SetName(newName);
            provider.Update(pilot);
            provider.Commit();
            provider.WaitForPreviousCommits();
        }
        private void ChangeObject(ITestableReplicationProviderInside container, string name
                                  , string newName)
        {
            Replicated obj = Find(container, name);

            if (obj == null)
            {
                return;
            }
            obj.SetName(newName);
            container.Update(obj);
            Out("CHANGED: " + container + ": " + name + " => " + newName + " - " + obj);
        }
Beispiel #4
0
        private void ModifyR4(ITestableReplicationProviderInside provider)
        {
            object      commitObject = null;
            IEnumerator it           = provider.GetStoredObjects(typeof(R4)).GetEnumerator();

            while (it.MoveNext())
            {
                R4 r4 = (R4)it.Current;
                r4.SetName(r4.GetName() + "_");
                provider.Update(r4);
                commitObject = r4;
            }
            provider.Commit();
        }
Beispiel #5
0
		private void ModifyR4(ITestableReplicationProviderInside provider)
		{
			object commitObject = null;
			IEnumerator it = provider.GetStoredObjects(typeof(R4)).GetEnumerator();
			while (it.MoveNext())
			{
				R4 r4 = (R4)it.Current;
				r4.SetName(r4.GetName() + "_");
				provider.Update(r4);
				commitObject = r4;
			}
			provider.Commit();
		}
		private void ChangeObject(ITestableReplicationProviderInside container, string name
			, string newName)
		{
			Replicated obj = Find(container, name);
			if (obj == null)
			{
				return;
			}
			obj.SetName(newName);
			container.Update(obj);
			Out("CHANGED: " + container + ": " + name + " => " + newName + " - " + obj);
		}