public void TestRecipe() { var client = new WowClient(TestConstants.TestRegion, Properties.Settings.Default.PublicKey, TestConstants.TestLocale); var recipe = client.GetRecipeAsync(TestConstants.WowTestRecipeId).Result; Assert.IsNotNull(recipe); Assert.IsNotNull(recipe.Name); Assert.IsNotNull(recipe.ToString()); Assert.IsNotNull(recipe.ProfessionName); Assert.IsNotNull(recipe.Icon); Assert.IsTrue(recipe.Id > 0); }
public void TestRecipe() { var client = new WowClient(TestConstants.TestRegionName, TestConstants.Credentials, null, null); var recipe = client.GetRecipeAsync(70556).Result; Assert.IsNotNull(recipe); Assert.IsNotNull(recipe.Name); Assert.IsNotNull(recipe.ToString()); Assert.IsNotNull(recipe.ProfessionName); Assert.IsNotNull(recipe.Icon); Assert.IsTrue(recipe.Id > 0); Assert.IsTrue(recipe.Id > 0); }