public async Task GetBoard() { var res1 = await PublicApi.GetBoard(ProductCode.BtcJpy); Assert.NotNull(res1); var res2 = await PublicApi.GetBoard(ProductCode.FxBtcJpy); Assert.NotNull(res2); var res3 = await PublicApi.GetBoard(ProductCode.EthBtc); Assert.NotNull(res3); }
public async Task TaskCanceledException() { var cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromMilliseconds(50)); await Assert.ThrowsAsync <BitFlyerApiException>(async() => await PublicApi.GetBoard(ProductCode.FxBtcJpy, cancellationTokenSource.Token)); }