예제 #1
0
        public void CanRegisterJitneyCreation()
        {
            var testee = new JitneyFactory();

            testee.Register(config => new MessageQueueJitney(config));

            testee.Create(A.Fake <IHaveJitneyConfiguration>()).Should().BeAssignableTo <MessageQueueJitney>();
        }
예제 #2
0
        public void CanCreateInstance()
        {
            var testee = new JitneyFactory();

            testee.Create(A.Fake <IHaveJitneyConfiguration>()).Should().BeAssignableTo <SimpleJitney>();
        }
예제 #3
0
 /// <summary>
 /// Creates a new instance of <see cref="ContainerLessJitneyConfiguration"/>
 /// </summary>
 public ContainerLessJitneyConfiguration(JitneyFactory factory)
     : base(new ContainerLessHandlerRegistry())
 {
     this.factory = factory;
 }