public IconGroupConstArg( IUIManager uim, IPickUpSystemProcessFactory pickUpSystemProcessFactory, IPickUpSystemUIElementFactory pickUpSystemUIElementFactory, IPickUpSystemUIA pickUpSyatemUIA, IUIImage image, IUITool tool, IItemIconTransactionManager iiTAM, int minSize, int maxSize, IHoverPadsManager hoverPadsManager, List <IItemIcon> iis ) : base( uim, pickUpSystemProcessFactory, pickUpSystemUIElementFactory, image, pickUpSyatemUIA, ActivationMode.None ) { thisIITAM = iiTAM; thisMinSize = minSize; thisMaxSize = maxSize; thisHoverPadsManager = hoverPadsManager; thisIIs = iis; }
public TestItemIcon CreateTestItemIcon(out IItemIconConstArg arg) { IItemIconConstArg thisArg = Substitute.For <IItemIconConstArg>(); IUIManager uim = Substitute.For <IUIManager>(); thisArg.uim.Returns(uim); IItemIconUIAdaptor iiUIA = Substitute.For <IItemIconUIAdaptor>(); thisArg.uia.Returns(iiUIA); IItemIconImage itemIconImage = Substitute.For <IItemIconImage>(); thisArg.image.Returns(itemIconImage); IItemIconTransactionManager iiTAM = Substitute.For <IItemIconTransactionManager>(); thisArg.iiTAM.Returns(iiTAM); IUIItem item = Substitute.For <IUIItem>(); thisArg.item.Returns(item); IItemIconTransactionStateEngine iiTAStateEngine = Substitute.For <IItemIconTransactionStateEngine>(); thisArg.iiTAStateEngine.Returns(iiTAStateEngine); IItemIconEmptinessStateEngine emptinessStateEngine = Substitute.For <IItemIconEmptinessStateEngine>(); thisArg.emptinessStateEngine.Returns(emptinessStateEngine); ITransferabilityHandlerImplementor transferabilityHandlerImplementor = Substitute.For <ITransferabilityHandlerImplementor>(); thisArg.transferabilityHandlerImplementor.Returns(transferabilityHandlerImplementor); TestItemIcon testItemIcon = new TestItemIcon(thisArg); arg = thisArg; return(testItemIcon); }
public ItemIconPickUpImplementor CreateIIPUImplementor(int transferableQuantity, int itemQuantity, int pickUpStepQuantity, out IItemIcon ii, out IItemIconTransactionManager iiTAM, out IPickUpSystemUIElementFactory uieFactory) { IItemIcon thisII = Substitute.For <IItemIcon>(); thisII.GetUIImage().Returns(Substitute.For <IUIImage>()); IItemTemplate itemTemp = Substitute.For <IItemTemplate>(); itemTemp.GetPickUpStepQuantity().Returns(pickUpStepQuantity); // thisII.GetItemTemplate().Returns(itemTemp); IUIItem item = Substitute.For <IUIItem>(); item.GetItemTemplate().Returns(itemTemp); thisII.GetUIItem().Returns(item); thisII.GetTransferableQuantity().Returns(transferableQuantity); thisII.GetItemQuantity().Returns(itemQuantity); thisII.GetIconGroup().Returns(Substitute.For <IIconGroup>()); IItemIconTransactionManager thisIITAM = Substitute.For <IItemIconTransactionManager>(); IPickUpSystemUIElementFactory thisUIEFactory = Substitute.For <IPickUpSystemUIElementFactory>(); ItemIconPickUpImplementor implementor = new ItemIconPickUpImplementor(thisIITAM, thisUIEFactory); implementor.SetItemIcon(thisII); ii = thisII; iiTAM = thisIITAM; uieFactory = thisUIEFactory; return(implementor); }
public ItemIconConstArg(IUIManager uim, IPickUpSystemProcessFactory pickUpSystemProcessFactory, IPickUpSystemUIElementFactory pickUpSystemUIElementFactory, IItemIconUIAdaptor iiUIA, IItemIconImage itemIconImage, IUITool tool, IDragImageImplementor dragImageImplementor, IVisualPickednessStateEngine visualPickednessStateEngine, IItemIconTransactionManager iiTAM, IUIItem item, IItemIconTransactionStateEngine iiTAStateEngine, IItemIconPickUpImplementor pickUpImplementor, IItemIconEmptinessStateEngine emptinessStateEngine, ITransferabilityHandlerImplementor transferabilityHandlerImplementor, IQuantityRoller quantityRoller) : base(uim, pickUpSystemProcessFactory, pickUpSystemUIElementFactory, iiUIA, itemIconImage, tool, dragImageImplementor, visualPickednessStateEngine) { thisIITAM = iiTAM; thisItem = item; thisIITAStateEngine = iiTAStateEngine; thisIIPickUpImplementor = iiPickUpImplementor; thisEmptinessStateEngine = emptinessStateEngine; thisQuantityRoller = quantityRoller; }
public void SetIITAM_CallsBothStatesSetIITAM() { TestIITAMStateEngine engine = new TestIITAMStateEngine(); IItemIconTransactionManager iiTAM = Substitute.For <IItemIconTransactionManager>(); engine.SetIITAM(iiTAM); engine.GetPickedState().Received(1).SetIITAM(iiTAM); engine.GetDefaultState().Received(1).SetIITAM(iiTAM); }
public TestIG CreateTestIG(int minSize, int maxSize, out IIconGroupConstArg arg) { IUIManager uim = Substitute.For <IUIManager>(); IPickUpSystemProcessFactory pickUpSystemProcessFactory = Substitute.For <IPickUpSystemProcessFactory>(); IPickUpSystemUIElementFactory pickUpSystemUIElementFactory = Substitute.For <IPickUpSystemUIElementFactory>(); IPickUpSystemUIA pickUpSystemUIA = Substitute.For <IPickUpSystemUIA>(); IUIImage image = Substitute.For <IUIImage>(); IUITool tool = Substitute.For <IUITool>(); IItemIconTransactionManager iiTAM = Substitute.For <IItemIconTransactionManager>(); IHoverPadsManager hoverPadsManager = Substitute.For <IHoverPadsManager>(); List <IItemIcon> iis = new List <IItemIcon>(); IIconGroupConstArg thisArg = new IconGroupConstArg(uim, pickUpSystemProcessFactory, pickUpSystemUIElementFactory, pickUpSystemUIA, image, tool, iiTAM, minSize, maxSize, hoverPadsManager, iis); TestIG testIG = new TestIG(thisArg); arg = thisArg; return(testIG); }
public AbsUITool(IUIManager uim, IItemIconTransactionManager iiTAM) { thisUIM = uim; thisIITAM = iiTAM; }
public void SetIITAM(IItemIconTransactionManager iiTAM) { thisIITAM = iiTAM; }
public void SetIITAM(IItemIconTransactionManager iiTAM) { thisPickedState.SetIITAM(iiTAM); thisDefaultState.SetIITAM(iiTAM); }
public ItemIconPickUpImplementor(IItemIconTransactionManager iiTAM, IPickUpSystemUIElementFactory pickUpSystemUIElementFactory) { thisIITAM = iiTAM; thisPickUpSystemUIElementFactory = pickUpSystemUIElementFactory; }
public IITransactionStateConstArg(IItemIconTransactionManager iiTAM) { thisIITAM = iiTAM; }