public void CreateSession_EmptyConfig_ReturnsSession() { IEngineConventionProvider conventionProvider = new EngineConventionConfiguration(); GenerationSessionFactory config = new GenerationSessionFactory(new EngineConfiguration(), conventionProvider); IGenerationSession session = config.CreateSession(); Assert.NotNull(session); }
public void SetupConfiguration() { Configuration = new EngineConfiguration(); IEngineConventionProvider conventionProvider = new EngineConventionConfiguration(); PopulateConfiguration(); GenerationSessionFactory factory = new GenerationSessionFactory( this.Configuration, conventionProvider); this.GenerationSession = factory.CreateSession(); }