public void ShouldRegisterPipelineExpectedToBeCalled()
        {
            // arrange
            var config = CreateSimpleConfig();

            using (var w = new PipelineWatcher(config))
            {
                // act
                w.Expects("mypipeline");

                // assert
                config.SelectSingleNode("/sitecore/pipelines/mypipeline").Should().NotBeNull();
            }
        }
 public PipelineWatcherTest()
 {
     this.watcher = new PipelineWatcher(Factory.GetConfiguration());
 }
示例#3
0
 internal Db(PipelineWatcher pipelineWatcher)
     : this()
 {
     this.pipelineWatcher = pipelineWatcher;
 }