コード例 #1
0
            public async Task DeserializeUpdateInformations(string fileName)
            {
                var stream = Helper.LoadFixture(fileName);

                using (StreamReader reader = new StreamReader(stream, Encoding.UTF8))
                {
                    var fixture = await reader.ReadToEndAsync();

                    var webhookClient = new WebhooksClient();
                    var result        = webhookClient.ParseWebhookPersonResponse(fixture);

                    Assert.NotEmpty(result.Meta.Action);
                    Assert.NotEqual(0, result.Current.Id);
                }
            }