Appccelerate.Bootstrapper.Syntax.Executables.ExecutableTest.Execute_ShouldCreateBehaviorContextForBehaviors C# (CSharp) Method

Execute_ShouldCreateBehaviorContextForBehaviors() private method

private Execute_ShouldCreateBehaviorContextForBehaviors ( IExecutable testee ) : void
testee IExecutable
return void
        public void Execute_ShouldCreateBehaviorContextForBehaviors(IExecutable<ICustomExtension> testee)
        {
            var first = new Mock<IBehavior<ICustomExtension>>();
            var second = new Mock<IBehavior<ICustomExtension>>();

            testee.Add(first.Object);
            testee.Add(second.Object);

            testee.Execute(Enumerable.Empty<ICustomExtension>(), this.executableContext.Object);

            this.executableContext.Verify(e => e.CreateBehaviorContext(first.Object));
            this.executableContext.Verify(e => e.CreateBehaviorContext(second.Object));
        }