コード例 #1
0
        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));
        }
コード例 #2
0
        public void Convert_WeHaveValidDuelLogJSON_WeGetTwoDuelLogs()
        {
            var duelLogs = _converter.Convert(_getValidDuelLogJSON());

            Assert.AreEqual(2, duelLogs.Count());
        }