示例#1
0
		public async void CanGetUptime()
		{
			var config = new Config();
			var twitchApi = new TwitchApi(config);

			var uptime = await twitchApi.GetUptime("#ballouthebear");
			Assert.Null(uptime);
		}
		public async void CanGetFollowersForUser()
		{
			var config = new Config();

			var client = new TwitchRestClient(config);
			var followers = await client.GetFollowers("ballouthebear");

			Assert.True(followers.Any(), "There are no followers!");
		}
示例#3
0
		public async void CanSetUsername()
		{
			var config = new Config();
			var twitchApi = new TwitchApi(config);

			var userInfo = new BallouBot.Data.User() {Id = "ballouthebear"};
			await twitchApi.SetUserInfo(userInfo);

			Assert.Equal(userInfo.Name, "BallouTheBear");
		}