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);
        }
Пример #2
0
 public void SetClient(SteepshotApiClient client)
 {
     UserFriendPresenter.SetClient(client);
     TagsPresenter.SetClient(client);
 }