/// <summary>
        /// Establishes a connection with TW2 to start retrieving data
        /// </summary>
        /// <param name="account">The account credentials used to start the connection.</param>
        /// <returns>Whether the connection was successful.</returns>
        public async Task <bool> EstablishConnection(Account account)
        {
            account = GetAccount(account.Id);

            if (account == null)
            {
                return(false);
            }

            return(await _socketRepository.EstablishConnection(account));
        }
        public static async void EstablishConnectionTestIfConnecting()
        {
            //Arrange
            ISocketRepository socketRepository = MockData.GetISocketRepository(true);
            Account           account          = SecretData.GetValidTestAccount();

            //Act
            var result = await socketRepository.EstablishConnection(account);

            //Assert
            Assert.True(result);
        }