public static void Initialize() { // Reset the global dependency container DependencyInjectionHelper.ResetGlobalContainer(); // Register test dependency mappings new DependencyContainer() .RegisterSingleton <Game.Factories.IAvatarFactory, TestAvatarFactory>(); ////.RegisterType<Core.Resources.Management.IResourceLoader> // Register the unity dependency mappings UnityDependencyContainerManager.Register(); Assert.IsNotNull(UnityDependencyContainerManager.Container); // Initialize logging with a test logger TestLogger.InitializeLog(); }
public void Initialize() { DependencyInjectionHelper.ResetGlobalContainer(); UnityDependencyContainerManager.Register(); Assert.IsNotNull(UnityDependencyContainerManager.Container); }
/// <summary>Initializes a new instance of the RuntimeRegistrationBehaviour class</summary> public RuntimeRegistrationBehaviour() { GlobalContainer.Reset(); UnityDependencyContainerManager.Register(); }