Exemplo n.º 1
0
        public static async Task <ulong?> DiscordIDAsync(string username)
        {
            if (MtgoToDiscordMapping.ContainsKey(username))
            {
                return(MtgoToDiscordMapping[username]);
            }
            var person = await DecksiteApi.GetPersonAsync(username);

            return(MtgoToDiscordMapping[username] = person.discord_id);
        }
Exemplo n.º 2
0
        public async Task TestPersonApi(string name)
        {
            var person = await DecksiteApi.GetPersonAsync(name);

            Assert.AreEqual(person.Name, name);
        }