private void StoreInA() { SPCChild child = new SPCChild("c1"); A().Provider().StoreNew(child); A().Provider().Commit(); EnsureNames(A(), "c1"); }
private void StoreParentAndChildToProviderA() { SPCChild child = new SPCChild("c1"); SPCParent parent = new SPCParent(child, "p1"); A().Provider().StoreNew(parent); A().Provider().Commit(); EnsureNames(A(), "p1", "c1"); }
private void Replicate() { SPCChild child = new SPCChild("c1"); SPCParent parent = new SPCParent(child, "p1"); A().Provider().StoreNew(parent); A().Provider().Commit(); ReplicateAll(A().Provider(), B().Provider()); }
public virtual void SetChild(SPCChild child) { this.child = child; }
public SPCParent(SPCChild child, string name) { this.child = child; this.name = name; }
private void TstObjectUpdate() { SPCChild child = new SPCChild("c1"); A().Provider().StoreNew(child); A().Provider().Commit(); StartReplication(); SPCChild reloaded = GetOneChildFromA(); long oldVer = A().Provider().ProduceReference(reloaded, null, null).Version(); CommitReplication(); SPCChild reloaded2 = GetOneChildFromA(); reloaded2.SetName("c3"); //System.out.println("==============BEGIN DEBUG"); A().Provider().Update(reloaded2); A().Provider().Commit(); //System.out.println("==============END DEBUG"); StartReplication(); SPCChild reloaded3 = GetOneChildFromA(); long newVer = A().Provider().ProduceReference(reloaded3, null, null).Version(); CommitReplication(); Assert.IsGreater(oldVer, newVer); }