Exemple #1
0
        public void TestRewards()
        {
            var client = new WowClient(TestConstants.TestRegionName, TestConstants.Credentials, null, null);
            var result = client.GetGuildRewardsAsync().Result;

            Assert.IsNotNull(result);
            Assert.IsNotNull(result.Rewards);
            Assert.IsTrue(result.Rewards.Count > 0);
            Assert.IsNotNull(result.Rewards[0].ToString());
            Assert.IsTrue(result.Rewards.Any(r => r.Races != null));
            Assert.IsTrue(result.Rewards.Any(r => r.MinimumGuildLevel >= 0));
            Assert.IsTrue((int)result.Rewards[0].MinimumGuildReputationLevel > (int)Standing.Unfriendly);
            Assert.IsNotNull(result.Rewards[0].RewardItem);
            Assert.IsNotNull(result.Rewards[0].RewardItem.Icon);
            Assert.IsTrue(result.Rewards[0].RewardItem.Quality != ItemQuality.Poor);
            Assert.IsTrue(result.Rewards[0].RewardItem.Id > 0);
            Assert.IsNotNull(result.Rewards[0].RewardItem.Name);
            //Assert.AreEqual(result.Rewards[0].RewardItem.Quality, ItemQuality.Heirloom);
            Assert.IsNotNull(result.Rewards[0].RewardItem.TooltipParameters);
            Assert.IsNotNull(result.Rewards[0].Achievement);

            var rw = new GuildReward();

// ReSharper disable ReturnValueOfPureMethodIsNotUsed
            rw.ToString();
// ReSharper restore ReturnValueOfPureMethodIsNotUsed
        }
 public void GuildVsGameGiveReward(GuildReward type, int teamId, bool isWin, string desc)
 {
 }