public void TestAddDuplicateNameThrowsArgumentException() { // Arrange var state = new PipelineBuilderState(); // Act state.AddComponent(typeof(FooComponent)); state.AddComponent(typeof(FooComponent)); }
public void TestAddEmptyNameThrowsArgumentNullException() { // Arrange var state = new PipelineBuilderState(); // Act state.AddComponent(" "); }
public void TestAddComponentTypeByType() { // Arrange var state = new PipelineBuilderState(); // Act state.AddComponent(typeof(FooComponent)); // Assert state.ComponentNames.Should().Contain(ComponentName); }
public IAdditionalPipelineComponentHolder <TPipeline, TComponentBase, TPayload> WithComponent <TComponent>() where TComponent : TComponentBase { State.AddComponent(typeof(TComponent)); return(this); }