コード例 #1
0
    /*  */
    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);
    }
コード例 #2
0
 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;
 }
コード例 #3
0
 public EquippableItemIconConstArg(IUIManager uim, IPickUpSystemProcessFactory pickUpSytemProcessFactory, IEquipToolUIEFactory eqpToolUIEFactory, IEquippableItemIconAdaptor uia, IItemIconImage itemIconImage, IEquipTool tool, IDragImageImplementor dragImageImplementor, IVisualPickednessStateEngine visualPickednessStateEngine, IEquippableIITAManager eqpIITAM, IEquippableUIItem item, IEqpIITransactionStateEngine eqpIITAStateEngine, IItemIconPickUpImplementor pickUpImplementor, IItemIconEmptinessStateEngine emptinessStateEngine, IEqpIITransferabilityHandlerImplementor eqpIITransferabilityHandlerImplementor, IQuantityRoller quantityRoller) : base(uim, pickUpSytemProcessFactory, eqpToolUIEFactory, uia, itemIconImage, tool, dragImageImplementor, visualPickednessStateEngine, eqpIITAM, item, eqpIITAStateEngine, pickUpImplementor, emptinessStateEngine, eqpIITransferabilityHandlerImplementor, quantityRoller)
 {
 }