private static async Task ExportClasses() { // WCL Api Library var wclApi = new WCL_Api(); var repo = new StatsRepository(); // Get Classes and Upload to DB var classes = wclApi.GetClassicClassesAsync().Result; var newClasses = classes.Select(s => s.ToClassicClass()).ToList(); repo.Classes.Add(newClasses); }
private static async Task ExportZones() { // WCL Api Library var wclApi = new WCL_Api(); var repo = new StatsRepository(); // Get Zones and Upload to DB var zones = wclApi.GetZonesAsync().Result; var newZones = zones.Select(s => s.ToZone()).ToList(); repo.Zones.Add(newZones); }
public static async Task RunTests() { var wclApi = new WCL_Api(); var zones = await wclApi.GetZonesAsync(); var classes = await wclApi.GetClassesAsync(); var classicClasses = await wclApi.GetClassicClassesAsync(); var rankings = await wclApi.GetRankingsAsync(616); var warriorRankings = await wclApi.GetRankingsAsync(616, 11); var end = true; }