Exemple #1
0
        public static EtagairCore CreateCore(IEtagairReposit reposit)
        {
            // create the core configurator, inject the concrete repository
            EtagairCore core = new EtagairCore();

            //----init the core: create the catalog, becomes the current catalog
            if (!core.Init(reposit))
            {
                return(null);
            }

            // configure the catalog

            return(core);
        }
        static EtagairCore CreateCore(IEtagairReposit reposit)
        {
            // create the core configurator, inject the concrete repository
            EtagairCore core = new EtagairCore();


            //----init the core: create the catalog, becomes the current catalog
            if (!core.Init(reposit))
            {
                Console.WriteLine("Error, Init failed, can't create the catalog, already exists.");
                return(null);
            }

            // configure the catalog

            return(core);
        }