コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }