コード例 #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);
 }