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