public virtual IEngineConfiguration Create(IEngineConfigurationProvider configurationProvider, IEngineConventionProvider conventionProvider)
 {
     EngineConfiguration configuration = new EngineConfiguration();
     var coreConvention = new DefaultEngineConfigurationProviderLoadingConvention();
     coreConvention.Apply(new EngineConfigurationProviderLoaderContext(configuration, configurationProvider, conventionProvider));
     return configuration;
 }
 public void TestSetup()
 {
     IEngineConfiguration configuration = new EngineConfiguration();
     IEngineConventionProvider conventionProvider = new Mock<IEngineConventionProvider>().Object;
     GenerationConfiguration repository = new GenerationConfiguration(configuration, conventionProvider, 10);
     configuration.RegisterType(typeof(SimpleUser));
     mGenerationSession = new GenerationContext(repository);
 }
 public void SetupConfiguration()
 {
     Configuration = new EngineConfiguration();
     IEngineConventionProvider conventionProvider = new EngineConventionConfiguration();
     PopulateConfiguration();
     GenerationSessionFactory factory = new GenerationSessionFactory(
         this.Configuration, conventionProvider);
     this.GenerationSession = factory.CreateSession();
 }
        public void RegisterType_TypeAlreadyRegistered_Throws_Exception()
        {
            EngineConfiguration configuration = new EngineConfiguration();
            configuration.RegisterType(typeof(SimpleUser));

            Assert.Throws<ArgumentException>(() =>
            {
                configuration.RegisterType(typeof(SimpleUser));
            });
        }