Exemple #1
0
        public async Task TestGetBlocks()
        {
            var client = new MastodonDynamicClient(_Host, _AccessToken);
            var id     = _TestTargetUserId;

            await client.Block(id);

            var result = await client.GetBlocks();

            Assert.IsTrue(result.Content.Any());

            await client.UnBlock(id);
        }
Exemple #2
0
        public async Task TestBlock()
        {
            var client = new MastodonDynamicClient(_Host, _AccessToken);
            var id     = _TestTargetUserId;

            var result = await client.Block(id);

            Assert.AreEqual(_TestTargetUserId, (int)result.id);

            result = await client.UnBlock(id);

            Assert.AreEqual(_TestTargetUserId, (int)result.id);
        }