public async Task GetPostVotersTest(KnownChains apiName, string url) { var presenter = new UserFriendPresenter() { VotersType = VotersType.All }; presenter.SetClient(Api[apiName]); Assert.IsTrue(presenter.Count == 0); var exception = await presenter.TryLoadNextPostVoters(url); Assert.IsTrue(exception == null); Assert.IsTrue(presenter.Count > 0); }
public async Task GetPostVotersTest(KnownChains apiName, string url) { await BasePresenter.SwitchChain(apiName); var presenter = new UserFriendPresenter() { VotersType = VotersType.All }; Assert.IsTrue(presenter.Count == 0); var error = await presenter.TryLoadNextPostVoters(url); Assert.IsTrue(error == null); Assert.IsTrue(presenter.Count > 0); }