Esempio n. 1
0
 protected override void Context()
 {
     base.Context();
     _commandToAdd1 = A.Fake <ICommand <MyContext> >();
     _commandToAdd2 = A.Fake <ICommand <MyContext> >();
     MacroCommandExtensions.Add(sut, _commandToAdd1, _commandToAdd2);
 }
Esempio n. 2
0
        protected override void Context()
        {
            base.Context();
            _reversibleCommand1 = new MyReversibleCommand();
            _reversibleCommand2 = new MyReversibleCommand();
            _reversibleCommand3 = new MyReversibleCommand();

            MacroCommandExtensions.Add(sut, _reversibleCommand1, _reversibleCommand2, _reversibleCommand3);
        }
Esempio n. 3
0
        protected override void Context()
        {
            base.Context();
            _commandToExecute1 = A.Fake <IReversibleCommand <MyContext> >();
            _commandToExecute2 = A.Fake <IReversibleCommand <MyContext> >();
            _commandToExecute3 = A.Fake <IReversibleCommand <MyContext> >();

            MacroCommandExtensions.Add(sut, _commandToExecute1, _commandToExecute2, _commandToExecute3);
            A.CallTo(() => _commandToExecute1.Id).Returns(new CommandId());
            A.CallTo(() => _commandToExecute2.Id).Returns(new CommandId());
            A.CallTo(() => _commandToExecute3.Id).Returns(new CommandId());
        }
Esempio n. 4
0
 protected override void Context()
 {
     base.Context();
     MacroCommandExtensions.Add(sut, A.Fake <IReversibleCommand <MyContext> >(), A.Fake <ICommand <MyContext> >());
 }