Ejemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 protected AccountPool()
 {
     if (_Instance == null)
     {
         _Instance = this;
     }
 }
Ejemplo n.º 2
0
 public static void Shutdown()
 {
     if (_Instance != null)
     {
         _Instance.Dispose();
         _Instance = null;
     }
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Setup the account pool for tests that use it. Internally our derived classes (e.g.
        /// RunOrionTests) fill these with the usernames and passwords for all of our various
        /// test accounts. This is left here as an example.
        /// </summary>
        /// <returns></returns>
        protected virtual void SetupAccounts()
        {
            // Set up account manager before we set up accounts.
            AccountPool.Initialize();

            string Username = Globals.Params.ParseValue("username", null);
            string Password = Globals.Params.ParseValue("password", null);

            if (!string.IsNullOrEmpty(Username) && !string.IsNullOrEmpty(Password))
            {
                AccountPool.Instance.RegisterAccount(new EpicAccount(Username, Password));
            }
        }