1
0
mirror of https://github.com/XFox111/GUTSchedule.git synced 2026-04-22 06:58:01 +03:00

- Updated schedule parser

- Authorization via personal cabinet is temporarly disabled
- Updated target Android version
This commit is contained in:
Michael Gordeev
2020-08-30 09:06:41 +03:00
parent ebdafc273f
commit 634804cbdc
12 changed files with 231 additions and 221 deletions
@@ -4,6 +4,7 @@ using GUTSchedule.Models;
using System;
using Newtonsoft.Json;
using System.IO;
using Newtonsoft.Json.Linq;
namespace GUTSchedule.Test
{
@@ -12,11 +13,13 @@ namespace GUTSchedule.Test
[Test]
public async Task ScheduleListTest()
{
dynamic secrets = JsonConvert.DeserializeObject(File.ReadAllText(Directory.GetCurrentDirectory() + "\\TestCredential.json"));
Assert.Warn("Feature is temporarly disabled. Skipping test");
Assert.Pass();
/*JObject secrets = JsonConvert.DeserializeObject(File.ReadAllText(Directory.GetCurrentDirectory() + "\\TestCredential.json")) as JObject;
var list = await Parser.GetSchedule(new CabinetExportParameters
{
Email = secrets.testEmail,
Password = secrets.testPassword,
Email = secrets["testEmail"].ToObject<string>(),
Password = secrets["testPassword"].ToObject<string>(),
EndDate = DateTime.Today.AddDays(7),
StartDate = DateTime.Today
});
@@ -24,7 +27,6 @@ namespace GUTSchedule.Test
Assert.IsNotNull(list);
Assert.IsTrue(list.Count > 0);
Console.WriteLine("Events list:");
foreach (var i in list)
{
@@ -34,7 +36,7 @@ namespace GUTSchedule.Test
Console.WriteLine(i.StartTime.ToShortDateString());
Console.WriteLine($"{i.StartTime.ToShortTimeString()}-{i.EndTime.ToShortTimeString()}");
Console.WriteLine(i.Opponent);
}
}*/
}
}
}