Exemplo n.º 1
0
        public async System.Threading.Tasks.Task RequestTestAsync()
        {
            var request = new UsernameToUUIDRequest("MomoYoki");
            var resp    = await ClientHelper.RequestAsync(request);

            Assert.True(resp.IsSuccess);
            Assert.Equal("00992bb84f6949b990dc309476a1426b", resp.Content.Id);
        }
Exemplo n.º 2
0
        public async System.Threading.Tasks.Task RequestRawTestAsync()
        {
            var request = new UsernameToUUIDRequest("MomoYoki");
            var resp    = await ClientHelper.RequestRawAsync(request);

            var content = await resp.Content.ReadAsStringAsync();

            Assert.NotEmpty(content);
            Console.WriteLine(content);
        }