public void Initialize(BuildModeHUDInitializationModel controllers)
    {
        this.controllers          = controllers;
        catalogItemDropController = new CatalogItemDropController();

        CreateMainView();
    }
        public void SetUp()
        {
            BuildModeHUDInitializationModel testControllers = new BuildModeHUDInitializationModel
            {
                tooltipController                    = Substitute.For <ITooltipController>(),
                sceneCatalogController               = Substitute.For <ISceneCatalogController>(),
                quickBarController                   = Substitute.For <IQuickBarController>(),
                entityInformationController          = Substitute.For <IEntityInformationController>(),
                firstPersonModeController            = Substitute.For <IFirstPersonModeController>(),
                shortcutsController                  = Substitute.For <IShortcutsController>(),
                publishPopupController               = Substitute.For <IPublishPopupController>(),
                dragAndDropSceneObjectController     = Substitute.For <IDragAndDropSceneObjectController>(),
                publishBtnController                 = Substitute.For <IPublishBtnController>(),
                inspectorBtnController               = Substitute.For <IInspectorBtnController>(),
                catalogBtnController                 = Substitute.For <ICatalogBtnController>(),
                inspectorController                  = Substitute.For <IInspectorController>(),
                buildModeConfirmationModalController = Substitute.For <IBuildModeConfirmationModalController>(),
                topActionsButtonsController          = Substitute.For <ITopActionsButtonsController>(),
                saveHUDController                    = Substitute.For <ISaveHUDController>(),
                newProjectDetailsController          = Substitute.For <IPublicationDetailsController>(),
                publicationDetailsController         = Substitute.For <IPublicationDetailsController>()
            };

            buildModeHUDController = Substitute.ForPartsOf <BuildModeHUDController>();
            buildModeHUDController.Configure().CreateView().Returns(info => Substitute.For <IBuildModeHUDView>());
            buildModeHUDController.Initialize(testControllers);
        }
示例#3
0
    internal void CreateBuildModeControllers()
    {
        controllers = new BuildModeHUDInitializationModel
        {
            tooltipController                    = new TooltipController(),
            feedbackTooltipController            = new TooltipController(),
            sceneCatalogController               = new SceneCatalogController(),
            quickBarController                   = new QuickBarController(),
            entityInformationController          = new EntityInformationController(),
            firstPersonModeController            = new FirstPersonModeController(),
            shortcutsController                  = new ShortcutsController(),
            publishPopupController               = new PublishPopupController(),
            dragAndDropSceneObjectController     = new DragAndDropSceneObjectController(),
            publishBtnController                 = new PublishBtnController(),
            inspectorBtnController               = new InspectorBtnController(),
            catalogBtnController                 = new CatalogBtnController(),
            inspectorController                  = new InspectorController(),
            buildModeConfirmationModalController = new BuildModeConfirmationModalController(),
            topActionsButtonsController          = new TopActionsButtonsController(),
            saveHUDController                    = new SaveHUDController(),
            newProjectDetailsController          = new PublicationDetailsController(),
            publicationDetailsController         = new PublicationDetailsController()
        };

        catalogItemDropController = new CatalogItemDropController();
    }
示例#4
0
 public void Initialize(BuildModeHUDInitializationModel controllers)
 {
     this.controllers = controllers;
     this.controllers.tooltipController.Initialize(tooltipView);
     this.controllers.sceneCatalogController.Initialize(sceneCatalogView, this.controllers.quickBarController);
     this.controllers.quickBarController.Initialize(quickBarView, this.controllers.sceneCatalogController);
     this.controllers.entityInformationController.Initialize(entityInformationView);
     this.controllers.firstPersonModeController.Initialize(firstPersonModeView, this.controllers.tooltipController);
     this.controllers.shortcutsController.Initialize(shortcutsView);
     this.controllers.publishPopupController.Initialize(publishPopupView);
     this.controllers.dragAndDropSceneObjectController.Initialize(dragAndDropSceneObjectView);
     this.controllers.publishBtnController.Initialize(publishBtnView, this.controllers.tooltipController);
     this.controllers.inspectorBtnController.Initialize(inspectorBtnView, this.controllers.tooltipController);
     this.controllers.catalogBtnController.Initialize(catalogBtnView, this.controllers.tooltipController);
     this.controllers.inspectorController.Initialize(inspectorView);
     this.controllers.topActionsButtonsController.Initialize(topActionsButtonsView, this.controllers.tooltipController);
 }
        public void SetUp()
        {
            testControllers = new BuildModeHUDInitializationModel
            {
                tooltipController                = Substitute.For <ITooltipController>(),
                sceneCatalogController           = Substitute.For <ISceneCatalogController>(),
                quickBarController               = Substitute.For <IQuickBarController>(),
                entityInformationController      = Substitute.For <IEntityInformationController>(),
                firstPersonModeController        = Substitute.For <IFirstPersonModeController>(),
                shortcutsController              = Substitute.For <IShortcutsController>(),
                publishPopupController           = Substitute.For <IPublishPopupController>(),
                dragAndDropSceneObjectController = Substitute.For <IDragAndDropSceneObjectController>(),
                publishBtnController             = Substitute.For <IPublishBtnController>(),
                inspectorBtnController           = Substitute.For <IInspectorBtnController>(),
                catalogBtnController             = Substitute.For <ICatalogBtnController>(),
                inspectorController              = Substitute.For <IInspectorController>(),
                topActionsButtonsController      = Substitute.For <ITopActionsButtonsController>()
            };

            buildModeHUDView = BuildModeHUDView.Create();
            buildModeHUDView.Initialize(testControllers);
        }