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>(); }