Пример #1
0
        public static PipelineLoader Create(string pipelineScript)
        {
            var builderState = new PipelineBuilderState();
            var loader       = new PipelineLoader(builderState);

            loader.Load(pipelineScript);
            return(loader);
        }
Пример #2
0
        public void TestAddEmptyNameThrowsArgumentNullException()
        {
            // Arrange
            var state = new PipelineBuilderState();

            // Act
            state.AddComponent("   ");
        }
Пример #3
0
        public void TestAddDuplicateNameThrowsArgumentException()
        {
            // Arrange
            var state = new PipelineBuilderState();

            // Act
            state.AddComponent(typeof(FooComponent));
            state.AddComponent(typeof(FooComponent));
        }
Пример #4
0
        public void TestAddComponentTypeByType()
        {
            // Arrange
            var state = new PipelineBuilderState();

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

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