public void IsFloatingObjectTest() { Assert.That(Helper.IsFloatingObject(obj), Is.EqualTo(true)); ((TestDataObjectImpl)obj).ID = 1; obj.AttachToContext(scope.Resolve <IZetboxContext>()); Assert.That(Helper.IsFloatingObject(obj), Is.EqualTo(false)); }