Пример #1
0
        public void TestAddDuplicateNameThrowsArgumentException()
        {
            // Arrange
            var state = new PipelineBuilderState();

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

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

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

            // Assert
            state.ComponentNames.Should().Contain(ComponentName);
        }
Пример #4
0
 public IAdditionalPipelineComponentHolder <TPipeline, TComponentBase, TPayload> WithComponent <TComponent>() where TComponent : TComponentBase
 {
     State.AddComponent(typeof(TComponent));
     return(this);
 }