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); }
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)); }
public void AddLabel(ILabelCommand labelItemToAdd) { addToHistory(labelItemToAdd, _currentState); }
public void AddLabel(ILabelCommand labelCommand) { }
protected override void Context() { base.Context(); _label = A.Fake <ILabelCommand>(); }