public void CreateParamMgrUnpersister()
        {
            Type expectedType = typeof(RandomNetGenParamMgrUnpersister);
            RandomNetGenUnpersisterFactory fac = new RandomNetGenUnpersisterFactory();
            IParamMgrUnpersister persister = fac.CreateParamMgrUnpersister();

            Assert.NotNull(persister);
            Assert.IsType(expectedType, persister);
        }
        public IUnpersisterFactory Create(ISimpleElement element)
        {
            IUnpersisterFactory persister = null;
            if (element is RandomGenerators.RandomNetworkGenElement)
                persister = new RandomGenerators.Persistance.RandomNetGenUnpersisterFactory();
            else if (element is ImportNetworkElement)
                persister = new ImportNetworkUnpersisterFactory();
            else if (element is ExportNetworkElement)
                persister = new ExportNetworkUnpersisterFactory();

            return persister;
        }
        public IUnpersisterFactory Create(Type elementType)
        {
            IUnpersisterFactory persister = null;

            if (elementType == typeof(RandomGenerators.RandomNetworkGenElement))
                persister = new RandomGenerators.Persistance.RandomNetGenUnpersisterFactory();
            else if (elementType == typeof(ImportNetworkElement))
                persister = new ImportNetworkUnpersisterFactory();
            else if (elementType == typeof(ExportNetworkElement))
                persister = new ExportNetworkUnpersisterFactory();

            return persister;
        }