コード例 #1
0
        public static TestEngineHandler Initialize(TestEngineHandler Engine)
        {
            Singleton <TestEngineHandler> .Instance = Engine;
            var config = ConfigurationManager.GetSection("ReposConfig") as ReposConfig;

            Singleton <TestEngineHandler> .Instance.Initialize(config);

            return(Singleton <TestEngineHandler> .Instance);
        }
コード例 #2
0
 /// <summary>
 /// Sets the static engine instance to the supplied engine. Use this method to supply your own engine implementation.
 /// </summary>
 /// <param name="engine">The engine to use.</param>
 /// <remarks>Only use this method if you know what you're doing.</remarks>
 public static void Replace(TestEngineHandler engine)
 {
     Singleton <TestEngineHandler> .Instance = engine;
 }