protected override IEnumerator SetUp() { yield return(base.SetUp()); TestHelpers.CreateSceneEntity(scene, ENTITY_ID); TestHelpers.CreateAndSetShape(scene, ENTITY_ID, DCL.Models.CLASS_ID.GLTF_SHAPE, JsonConvert.SerializeObject( new { src = TestAssetsUtils.GetPath() + "/GLB/Trunk/Trunk.glb" })); LoadWrapper gltfShape = GLTFShape.GetLoaderForEntity(scene.entities[ENTITY_ID]); yield return(new DCL.WaitUntil(() => gltfShape.alreadyLoaded)); outlinerController = new BIWOutlinerController(); entityHandler = new BIWEntityHandler(); var referencesController = BIWTestHelper.CreateReferencesControllerWithGenericMocks( outlinerController, entityHandler ); outlinerController.Init(referencesController); entityHandler.Init(referencesController); entityHandler.EnterEditMode(scene); outlinerController.EnterEditMode(scene); entity = entityHandler.GetConvertedEntity(scene.entities[ENTITY_ID]); }
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()); var referencesController = BIWTestHelper.CreateReferencesControllerWithGenericMocks(InitialSceneReferences.i); gizmosController = new BIWGizmosController(); gizmosController.Init(referencesController); gizmosController.EnterEditMode(scene); }
protected override IEnumerator SetUp() { yield return(base.SetUp()); gameObject = new GameObject(); builderInWorldBridge = InitialSceneReferences.i.builderInWorldBridge; biwSaveController = new BIWSaveController(); biwSaveController.Init(BIWTestHelper.CreateReferencesControllerWithGenericMocks(InitialSceneReferences.i)); biwSaveController.EnterEditMode(scene); }
protected override IEnumerator SetUp() { yield return(base.SetUp()); biwCreatorController = new BIWCreatorController(); entityHandler = new BIWEntityHandler(); var referencesController = BIWTestHelper.CreateReferencesControllerWithGenericMocks( entityHandler, biwCreatorController ); biwCreatorController.Init(referencesController); entityHandler.Init(referencesController); entityHandler.EnterEditMode(scene); biwCreatorController.EnterEditMode(scene); }