Exemplo n.º 1
0
 public virtual void Test()
 {
     var configuration = NewConfiguration();
     var item = new ConfigurationItemStub
         ();
     configuration.Common.Add(item);
     Assert.AreSame(LegacyConfigFor(configuration), item.PreparedConfiguration());
     Assert.IsNull(item.AppliedContainer());
     File4.Delete(TempFile());
     IObjectContainer container = Db4oEmbedded.OpenFile(configuration, TempFile());
     container.Close();
     Assert.AreSame(container, item.AppliedContainer());
 }
Exemplo n.º 2
0
        public virtual void Test()
        {
            var configuration = NewConfiguration();
            var item          = new ConfigurationItemStub
                                    ();

            configuration.Common.Add(item);
            Assert.AreSame(LegacyConfigFor(configuration), item.PreparedConfiguration());
            Assert.IsNull(item.AppliedContainer());
            File4.Delete(TempFile());
            IObjectContainer container = Db4oEmbedded.OpenFile(configuration, TempFile());

            container.Close();
            Assert.AreSame(container, item.AppliedContainer());
        }