예제 #1
0
        public UpdateInventoryTests()
        {
            _updateAgedBrie      = Substitute.For <IUpdateAgedBrie>();
            _updateBackStage     = Substitute.For <IUpdateBackStageItems>();
            _updateConjuredItems = Substitute.For <IUpdateConjuredItems>();
            _updateOrdinaryItems = Substitute.For <IUpdateOrdinaryItems>();

            _sut = new UpdateInventory(_updateBackStage, _updateAgedBrie, _updateConjuredItems, _updateOrdinaryItems);
        }
예제 #2
0
 public UpdateInventory(IUpdateBackStageItems updateBackStageItems,
                        IUpdateAgedBrie updateAgedBrie,
                        IUpdateConjuredItems updateConjuredItems,
                        IUpdateOrdinaryItems updateOrdinaryItems)
 {
     _updateBackStageItems = updateBackStageItems;
     _updateAgedBrie       = updateAgedBrie;
     _updateConjuredItems  = updateConjuredItems;
     _updateOrdinaryItems  = updateOrdinaryItems;
 }