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); }
public Account GetAccount(int accountId, bool tw2AccountId = false) { return(_gameDataRepository.GetAccount(accountId, tw2AccountId)); }