Example #1
0
 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);
 }
Example #2
0
 public static MockActivator ActivatorFor(IActivatable
     obj)
 {
     var activator = new MockActivator
         ();
     obj.Bind(activator);
     return activator;
 }
Example #3
0
		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;
		}
Example #4
0
        public static MockActivator ActivatorFor(IActivatable
                                                 obj)
        {
            var activator = new MockActivator
                                ();

            obj.Bind(activator);
            return(activator);
        }
Example #5
0
    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);
    }