Example #1
0
 public TestProxyNakedObject CreateAdapterForTransient(object associate) {
     var testProxyNakedObject = new TestProxyNakedObject();
     testProxyNakedObject.SetupObject(associate);
     testProxyNakedObject.SetupSpecification(GetSpecification(associate.GetType()));
     testProxyNakedObject.ResolveState.Handle(Events.InitializeTransientEvent);
     testProxyNakedObject.SetupOid(new TestProxyOid(nextId++));
     return testProxyNakedObject;
 }
Example #2
0
 public void MakePersistent(TestProxyNakedObject adapter) {
     IOid oid = adapter.Oid;
     Persistor.ConvertTransientToPersistentOid(oid);
     adapter.SetupOid(oid);
     Persistor.MakePersistent(adapter);
 }