private async Task <List <DuelLog> > _getDuelLogs(string duelLogName) { string pathToDuelLog = await _fTPDownloader.DownloadDuelLogFromFTP(_adminConfig.ServerDataEndpointURL + "/duel_logs/" + duelLogName); string duelLogContent = _unzipper.GetDuelLogFromZip(pathToDuelLog); return(_duelLogConverter.Convert(duelLogContent)); }
public void Convert_WeHaveValidDuelLogJSON_WeGetTwoDuelLogs() { var duelLogs = _converter.Convert(_getValidDuelLogJSON()); Assert.AreEqual(2, duelLogs.Count()); }