Пример #1
0
        public static async void FullTW2DataHarvest()
        {
            //Arrange
            IGameDataRepository _gameDataRepository = MockData.GetIGameDataRepository(true);
            Account             account             = SecretData.GetValidTestAccount();

            //Act
            _gameDataRepository.InsertOrUpdateAccount(account);
            await _gameDataRepository.TestAccountASync(account);

            Account foundAccount = _gameDataRepository.GetAccount(account.Id);

            //Assert
            Assert.NotNull(foundAccount);
            Assert.NotNull(foundAccount.TW2AccountID);

            //Act
            var result = await _gameDataRepository.EstablishConnection(foundAccount);

            //Assert
            Assert.True(result);
        }
Пример #2
0
 public Account GetAccount(int accountId, bool tw2AccountId = false)
 {
     return(_gameDataRepository.GetAccount(accountId, tw2AccountId));
 }