public static Db4objects.Db4o.Tests.Common.TA.MockActivator ActivatorFor(IActivatable obj) { Db4objects.Db4o.Tests.Common.TA.MockActivator activator = new Db4objects.Db4o.Tests.Common.TA.MockActivator (); obj.Bind(activator); return(activator); }
public static MockActivator ActivatorFor(IActivatable obj) { var activator = new MockActivator (); obj.Bind(activator); return activator; }
public static Db4objects.Db4o.Tests.Common.TA.MockActivator ActivatorFor(IActivatable obj) { Db4objects.Db4o.Tests.Common.TA.MockActivator activator = new Db4objects.Db4o.Tests.Common.TA.MockActivator (); obj.Bind(activator); return activator; }
public static MockActivator ActivatorFor(IActivatable obj) { var activator = new MockActivator (); obj.Bind(activator); return(activator); }
public void TestBindSameActivator() { Tagged obj = new Tagged("test"); MockActivator ma = ActivatorFor(obj); IActivatable activatable = (IActivatable)obj; activatable.Bind(ma); string tags = obj.tags; Assert.AreEqual(1, ma.ReadCount); }