public TestEqpII CreateTestEqpII(System.Type tempType, out IEquippableItemIconConstArg arg) { IEquippableItemIconConstArg thisArg; TestEqpII testEqpII = CreateTestEqpII(out thisArg); IEquippableUIItem item = (IEquippableUIItem)thisArg.item; if (tempType == typeof(IBowTemplate)) { item.GetItemTemplate().Returns(Substitute.For <IBowTemplate>()); } else if (tempType == typeof(IWearTemplate)) { item.GetItemTemplate().Returns(Substitute.For <IWearTemplate>()); } else if (tempType == typeof(ICarriedGearTemplate)) { item.GetItemTemplate().Returns(Substitute.For <ICarriedGearTemplate>()); } else { throw new System.ArgumentException("tempType must be of type IItemTemplate"); } arg = thisArg; return(testEqpII); }
public TestEqpII CreateTestEqpIIWithPickability(bool isPicked, out IEquippableItemIconConstArg arg) { IEquippableItemIconConstArg thisArg; TestEqpII testEqpII = CreateTestEqpII(out thisArg); IEqpIITransactionStateEngine eqpIITAStateEngine = (IEqpIITransactionStateEngine)thisArg.iiTAStateEngine; eqpIITAStateEngine.IsPicked().Returns(isPicked); arg = thisArg; return(testEqpII); }
public TestEqpII CreateTestEqpII(int quantity, System.Type tempType, out IEquippableItemIconConstArg arg) { IEquippableItemIconConstArg thisArg; TestEqpII testEqpII = CreateTestEqpII(tempType, out thisArg); IEquippableUIItem eqpItem = (IEquippableUIItem)thisArg.item; eqpItem.GetQuantity().Returns(quantity); arg = thisArg; return(testEqpII); }
/* */ public TestEqpII CreateTestEqpII(out IEquippableItemIconConstArg arg) { IEquippableItemIconConstArg thisArg = Substitute.For <IEquippableItemIconConstArg>(); IUIManager uim = Substitute.For <IUIManager>(); thisArg.uim.Returns(uim); IPickUpSystemProcessFactory pickUpSystemProcessFactory = Substitute.For <IPickUpSystemProcessFactory>(); thisArg.processFactory.Returns(pickUpSystemProcessFactory); IEquipToolUIEFactory eqpToolUIEFactory = Substitute.For <IEquipToolUIEFactory>(); thisArg.uiElementFactory.Returns(eqpToolUIEFactory); IEquippableItemIconAdaptor eqpIIUIA = Substitute.For <IEquippableItemIconAdaptor>(); thisArg.uia.Returns(eqpIIUIA); IItemIconImage itemIconImage = Substitute.For <IItemIconImage>(); thisArg.image.Returns(itemIconImage); IEquippableIITAManager eqpIITAM = Substitute.For <IEquippableIITAManager>(); thisArg.iiTAM.Returns(eqpIITAM); IEquippableUIItem eqpItem = Substitute.For <IEquippableUIItem>(); thisArg.item.Returns(eqpItem); IEqpIITransactionStateEngine eqpIITAStateEngine = Substitute.For <IEqpIITransactionStateEngine>(); thisArg.iiTAStateEngine.Returns(eqpIITAStateEngine); IItemIconEmptinessStateEngine emptinessStateEngine = Substitute.For <IItemIconEmptinessStateEngine>(); thisArg.emptinessStateEngine.Returns(emptinessStateEngine); IItemIconPickUpImplementor pickUpImplementor = Substitute.For <IItemIconPickUpImplementor>(); thisArg.iiPickUpImplementor.Returns(pickUpImplementor); arg = thisArg; TestEqpII eqpII = new TestEqpII(thisArg); return(eqpII); }
public TestEqpII(IEquippableItemIconConstArg arg) : base(arg) { }
public TestEqpII CreateTestEqpII(bool isStackable, bool isInEqpIG, int quantity, System.Type tempType, out IEquippableItemIconConstArg arg) { IEquippableItemIconConstArg thisArg; TestEqpII testEqpII = CreateTestEqpII(isInEqpIG, quantity, tempType, out thisArg); if (isStackable) { thisArg.item.GetItemTemplate().IsStackable().Returns(true); } else { thisArg.item.GetItemTemplate().IsStackable().Returns(false); } arg = thisArg; return(testEqpII); }
public TestEqpII CreateTestEqpII(bool isInEqpIG, int quantity, System.Type tempType, out IEquippableItemIconConstArg arg) { IEquippableItemIconConstArg thisArg; TestEqpII testEqpII = CreateTestEqpII(quantity, tempType, out thisArg); if (isInEqpIG) { testEqpII.SetIconGroup(Substitute.For <IEquipToolEquipIG>()); } else { testEqpII.SetIconGroup(Substitute.For <IEquipToolPoolIG>()); } arg = thisArg; return(testEqpII); }
public EquippableItemIcon(IEquippableItemIconConstArg arg) : base(arg) { }