Ejemplo n.º 1
0
        public void CanRegisterJitneyCreation()
        {
            var testee = new JitneyFactory();

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

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

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