protected override void Context() { _sumFormula = new SumFormula(); _newTag = "New"; _oldTag = "Old"; _buildingBlock = A.Fake <IBuildingBlock>(); sut = new EditTagCommand <SumFormula>(_newTag, _oldTag, _sumFormula, _buildingBlock, x => x.Criteria); }
protected override void Context() { _sumFormula = new SumFormula(); _newTag = "New"; _oldTag = "Old"; _buildingBlock = A.Fake <IBuildingBlock>(); _commandParameters = new TagConditionCommandParameters <SumFormula> { TaggedObject = _sumFormula, BuildingBlock = _buildingBlock, DescriptorCriteriaRetriever = x => x.Criteria }; sut = new EditTagCommand <SumFormula>(_newTag, _oldTag, _commandParameters); }