Exemple #1
0
    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 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;
 }