コード例 #1
0
 public void SetUp()
 {
     _areaSelection       = Substitute.For <IAreaSelection>();
     _individualSelection = Substitute.For <IIndividualSelection>();
     _selectionInterface  = Substitute.ForPartsOf <SelectionManager>(new object[] {
         _areaSelection, _individualSelection
     });
 }
コード例 #2
0
 public SelectionManager(IAreaSelection areaSelection, IIndividualSelection individualSelection)
 {
     this._areaSelection       = areaSelection;
     this._individualSelection = individualSelection;
 }