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); }
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); }