Esempio n. 1
0
        private IStructureTypeConfig UseGenericConfiguratorFor <T>(Action <IStructureTypeConfigurator <T> > configure) where T : class
        {
            var configurator = new StructureTypeConfigurator <T>(typeof(T));

            configure(configurator);

            return(configurator.GenerateConfig());
        }
        private IStructureTypeConfig UseNonGenericConfiguratorFor <T>(Action <IStructureTypeConfigurator> configure) where T : class
        {
            var config       = new StructureTypeConfig(typeof(T));
            var configurator = new StructureTypeConfigurator(config);

            configure(configurator);

            return(config);
        }