protected override void Context() { base.Context(); _simpleHistoryItem = A.Fake <IHistoryItem>(); _command = new MySimpleCommand(); _command.Visible = true; _simpleHistoryItem.State = 1; A.CallTo(() => _simpleHistoryItem.User).Returns("toto"); A.CallTo(() => _simpleHistoryItem.Command).Returns(_command); _command.CommandType = "CommandType"; _command.ObjectType = "ObjectType"; _command.Description = "Description"; _command.Comment = "One comment"; _command.ExtendedDescription = "One LongDescription"; _command.AddExtendedProperty("p1", "one value for p1"); _command.AddExtendedProperty("p2", "one value for p2"); }