protected override void Context()
 {
     base.Context();
     _command1 = new MyReversibleCommand {
         Loaded = true
     };
     _command2 = new MyReversibleCommand {
         Loaded = true
     };
     _labelCommand = new LabelCommand();
     sut.AddToHistory(_command1);
     sut.AddToHistory(_command2);
 }
示例#2
0
        protected override void Context()
        {
            base.Context();
            _label   = "label";
            _comment = "Comment";
            var labelDTO = new LabelDTO {
                Label = _label, Comment = _comment
            };

            A.CallTo(() => _labelPresenter.CreateLabel()).Returns(true);
            A.CallTo(() => _labelPresenter.LabelDTO).Returns(labelDTO);
            A.CallTo(() => _historyManager.AddLabel(A <ILabelCommand> .Ignored))
            .Invokes(x => _command = x.Arguments.Get <ILabelCommand>(0));
        }
示例#3
0
 public void AddLabel(ILabelCommand labelItemToAdd)
 {
     addToHistory(labelItemToAdd, _currentState);
 }
示例#4
0
 public void AddLabel(ILabelCommand labelCommand)
 {
 }
 protected override void Context()
 {
     base.Context();
     _label = A.Fake <ILabelCommand>();
 }