public static PipelineLoader Create(string pipelineScript) { var builderState = new PipelineBuilderState(); var loader = new PipelineLoader(builderState); loader.Load(pipelineScript); return(loader); }
public void TestAddEmptyNameThrowsArgumentNullException() { // Arrange var state = new PipelineBuilderState(); // Act state.AddComponent(" "); }
public void TestAddDuplicateNameThrowsArgumentException() { // Arrange var state = new PipelineBuilderState(); // Act state.AddComponent(typeof(FooComponent)); state.AddComponent(typeof(FooComponent)); }
public void TestAddComponentTypeByType() { // Arrange var state = new PipelineBuilderState(); // Act state.AddComponent(typeof(FooComponent)); // Assert state.ComponentNames.Should().Contain(ComponentName); }
private PipelineBuilderBase() { State = new PipelineBuilderState(); }
protected PipelineBuilderBase() { State = new PipelineBuilderState(); }
private PipelineLoader(PipelineBuilderState builderState) { this.builderState = builderState; }