Example #1
0
        public static PipelineLoader Create(string pipelineScript)
        {
            var builderState = new PipelineBuilderState();
            var loader       = new PipelineLoader(builderState);

            loader.Load(pipelineScript);
            return(loader);
        }
Example #2
0
        public void TestAddEmptyNameThrowsArgumentNullException()
        {
            // Arrange
            var state = new PipelineBuilderState();

            // Act
            state.AddComponent("   ");
        }
Example #3
0
        public void TestAddDuplicateNameThrowsArgumentException()
        {
            // Arrange
            var state = new PipelineBuilderState();

            // Act
            state.AddComponent(typeof(FooComponent));
            state.AddComponent(typeof(FooComponent));
        }
Example #4
0
        public void TestAddComponentTypeByType()
        {
            // Arrange
            var state = new PipelineBuilderState();

            // Act
            state.AddComponent(typeof(FooComponent));

            // Assert
            state.ComponentNames.Should().Contain(ComponentName);
        }
Example #5
0
 private PipelineBuilderBase()
 {
     State = new PipelineBuilderState();
 }
 protected PipelineBuilderBase()
 {
     State = new PipelineBuilderState();
 }
Example #7
0
 private PipelineLoader(PipelineBuilderState builderState)
 {
     this.builderState = builderState;
 }