From 904fabdb864664453e6691256322b89c137a753b Mon Sep 17 00:00:00 2001 From: Tarik Date: Wed, 10 Jul 2024 22:58:46 +0300 Subject: [PATCH] Bug fixes and version update --- .../TestFramework/UnitTest/TarjectUnitTestFixture.cs | 11 +++++++++++ Samples/Prefabs/SceneInjecter.prefab | 8 ++++---- package.json | 2 +- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/Editor/TestFramework/UnitTest/TarjectUnitTestFixture.cs b/Editor/TestFramework/UnitTest/TarjectUnitTestFixture.cs index 6588306..fcb953d 100644 --- a/Editor/TestFramework/UnitTest/TarjectUnitTestFixture.cs +++ b/Editor/TestFramework/UnitTest/TarjectUnitTestFixture.cs @@ -8,6 +8,17 @@ public abstract class TarjectUnitTestFixture protected DIContainer Container { get; set; } = new DIContainer(); [SetUp] + protected void SetupFixture() + { + Setup(); + InjectToConstructors(); + } + protected abstract void Setup(); + + private void InjectToConstructors() + { + Container.CompleteBindings(); + } } } \ No newline at end of file diff --git a/Samples/Prefabs/SceneInjecter.prefab b/Samples/Prefabs/SceneInjecter.prefab index 52f52b5..3f40646 100644 --- a/Samples/Prefabs/SceneInjecter.prefab +++ b/Samples/Prefabs/SceneInjecter.prefab @@ -9,7 +9,7 @@ GameObject: serializedVersion: 6 m_Component: - component: {fileID: 5411828318643517000} - - component: {fileID: 7860593057041340980} + - component: {fileID: 3395557070808099768} m_Layer: 0 m_Name: SceneInjecter m_TagString: Untagged @@ -30,9 +30,9 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 4 + m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &7860593057041340980 +--- !u!114 &3395557070808099768 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -41,6 +41,6 @@ MonoBehaviour: m_GameObject: {fileID: 5396205908393124399} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: ee43dc7521b46ee4889dc1e14b35929b, type: 3} + m_Script: {fileID: 11500000, guid: d2afaab27ad7a0f43b6c4d3b0258e8c1, type: 3} m_Name: m_EditorClassIdentifier: diff --git a/package.json b/package.json index 877ad37..8b26de3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.tariksavas.tarject", - "version": "0.1.6", + "version": "0.1.7", "displayName": "Tarject", "description": "This is a Dependency Injection Framework for Unity", "unity": "2019.1",