Exemplo n.º 1
0
        public void SetupOnce()
        {
            ObjectFactory.Initialize((cfg) => cfg.AddRegistry(new ProcessorRegistry()));

            var eventLogger = Substitute.For<IEventLogger>();
            processor = new PipelineProcessor(ObjectFactory.Container, eventLogger);
        }
Exemplo n.º 2
0
    public virtual void Register(string pipelineName, IPipelineProcessor processorMock)
    {
      this.Pipelines[pipelineName] = processorMock;

      this.Expects(pipelineName, delegate { return true; });
    }