private void SetUpBehaviourWithoutSceneObjectAndInject() { var obj = new GameObject(); behaviour = obj.AddComponent <FindObjectOfTypeTestClass>(); new GameObjectInjector(behaviour.gameObject).Inject(); }
private void SetUpBehaviourAndSceneObjectAndInject() { var obj = new GameObject(); behaviour = obj.AddComponent <FindObjectOfTypeTestClass>(); dependent = new GameObject("Test"); dependent.AddComponent <AudioSource>(); new GameObjectInjector(behaviour.gameObject).Inject(); }