public void ShouldPassConfigSectionToSettings()
    {
      // arrange
      var config = new XmlDocument();

      // act
      var configuration = new DbConfiguration(config);

      // assert
      configuration.Settings.ConfigSection.Should().BeEquivalentTo(config);
    }
Beispiel #2
0
    public Db(string databaseName)
    {
      this.database = Database.GetDatabase(databaseName);
      this.dataStorage = new DataStorage(this.database);

      var config = Factory.GetConfiguration();
      this.configuration = new DbConfiguration(config);
      this.pipelineWatcher = new PipelineWatcher(config);

      var args = new InitDbArgs(this.database, this.dataStorage);
      CorePipeline.Run("initFakeDb", args);
    }