Example #1
0
        public void PipelineComponentResolver_NotFoundTest()
        {
            var    target = new PipelineComponentResolver(_container);
            Action act    = () => target.GetInstance <IPipelineComponent <TestPayload> >("SomeBadName");

            act.Should().ThrowExactly <PipelineComponentNotFoundException>();
        }
Example #2
0
        public void PipelineComponentResolver_GetInstanceTest()
        {
            var target = new PipelineComponentResolver(_container);
            var result = target.GetInstance <IPipelineComponent <TestPayload> >(typeof(FooComponent).Name);

            result.Should().NotBeNull();
            result.Should().BeAssignableTo <FooComponent>();
        }