private void InitControllers() { entityHandler.Init(context); modeController.Init(context); publishController.Init(context); creatorController.Init(context); outlinerController.Init(context); floorHandler.Init(context); inputHandler.Init(context); saveController.Init(context); actionController.Init(context); inputWrapper.Init(context); raycastController.Init(context); gizmosController.Init(context); controllers.Add(entityHandler); controllers.Add(modeController); controllers.Add(publishController); controllers.Add(creatorController); controllers.Add(outlinerController); controllers.Add(floorHandler); controllers.Add(inputHandler); controllers.Add(saveController); controllers.Add(actionController); controllers.Add(inputWrapper); controllers.Add(raycastController); controllers.Add(gizmosController); }
protected override IEnumerator SetUp() { yield return(base.SetUp()); TestHelpers.CreateSceneEntity(scene, ENTITY_ID); biwActionController = new BIWActionController(); entityHandler = new BIWEntityHandler(); biwFloorHandler = new BIWFloorHandler(); biwCreatorController = new BIWCreatorController(); var referencesController = BIWTestHelper.CreateReferencesControllerWithGenericMocks( biwActionController, entityHandler, biwFloorHandler, biwCreatorController ); biwActionController.Init(referencesController); entityHandler.Init(referencesController); biwFloorHandler.Init(referencesController); biwCreatorController.Init(referencesController); biwActionController.EnterEditMode(scene); entityHandler.EnterEditMode(scene); biwFloorHandler.EnterEditMode(scene); biwCreatorController.EnterEditMode(scene); }
protected override IEnumerator SetUp() { yield return(base.SetUp()); biwModeController = new BIWModeController(); BIWActionController actionController = new BIWActionController(); var referencesController = BIWTestHelper.CreateReferencesControllerWithGenericMocks( actionController, biwModeController, InitialSceneReferences.i ); biwModeController.Init(referencesController); actionController.Init(referencesController); biwModeController.EnterEditMode(scene); actionController.EnterEditMode(scene); }