public void troops_overview(string data) { try { if (!string.IsNullOrWhiteSpace(data)) { log.Debug("troops_overview: " + data); var conv = new GameDataConverter(); var troops = conv.GetTroopsOverview(data); DoTroopsOverview(troops); } } catch (Exception e) { log.Error(e.Message, e); } }
public void T006_TroopsOverviewRep() { var jsonData = System.IO.File.ReadAllText(@".\test_data\all_troops.json"); var conv = new GameDataConverter(); var troops = conv.GetTroopsOverview(jsonData); }