public void CanRegisterJitneyCreation() { var testee = new JitneyFactory(); testee.Register(config => new MessageQueueJitney(config)); testee.Create(A.Fake <IHaveJitneyConfiguration>()).Should().BeAssignableTo <MessageQueueJitney>(); }
public void CanCreateInstance() { var testee = new JitneyFactory(); testee.Create(A.Fake <IHaveJitneyConfiguration>()).Should().BeAssignableTo <SimpleJitney>(); }
/// <summary> /// Creates a new instance of <see cref="ContainerLessJitneyConfiguration"/> /// </summary> public ContainerLessJitneyConfiguration(JitneyFactory factory) : base(new ContainerLessHandlerRegistry()) { this.factory = factory; }