コード例 #1
0
ファイル: AuctionTests.cs プロジェクト: nmugnier/WowDotNetAPI
        public void Get_EU_Realm_Auction_Data()
        {
            WowExplorer euExplorer = new WowExplorer(Region.EU, Locale.fr_FR, APIKey);

            Auctions auctions = euExplorer.GetAuctions("Twisting Nether");
            Assert.IsTrue(auctions.Horde.Auctions.Count() > 0);
        }
コード例 #2
0
ファイル: AuctionTests.cs プロジェクト: nmugnier/WowDotNetAPI
        public void Get_TW_Realm_Auction_Data()
        {
            WowExplorer twExplorer = new WowExplorer(Region.TW, Locale.zh_TW, APIKey);

            Auctions auctions = twExplorer.GetAuctions("Balnazzar");
            Assert.IsTrue(auctions.Horde.Auctions.Count() > 0);
        }
コード例 #3
0
ファイル: AuctionTests.cs プロジェクト: Hiale/WowDotNetAPI
        public void Get_TW_Realm_Auction_Data()
        {
            WowExplorer twExplorer = new WowExplorer(Region.TW, Locale.zh_TW, APIKey);

            Auctions auctions = twExplorer.GetAuctions("Balnazzar");

            Assert.IsTrue(auctions.AllAuctionHouses.Auctions.Count() > 0);
        }
コード例 #4
0
ファイル: AuctionTests.cs プロジェクト: Hiale/WowDotNetAPI
        public void Get_EU_Realm_Auction_Data()
        {
            WowExplorer euExplorer = new WowExplorer(Region.EU, Locale.fr_FR, APIKey);

            Auctions auctions = euExplorer.GetAuctions("Twisting Nether");

            Assert.IsTrue(auctions.AllAuctionHouses.Auctions.Count() > 0);
        }
コード例 #5
0
ファイル: AuctionTest.cs プロジェクト: wclayhall/WowDotNetAPI
        private void testRealm(Region region, string realm)
        {
            WowExplorer explorer = new WowExplorer(Region.US);

            Auctions auctions = explorer.GetAuctions("Skullcrusher");

            Assert.IsTrue(auctions.Horde.Auctions.Count() > 0);
            Assert.IsTrue((from n in auctions.Horde.Auctions where n.ItemId == 53010 select n).Count() > 0);
        }
コード例 #6
0
        public static string GetRandomAuctionOwner(string _realm)
        {
            Console.WriteLine($"{DateTime.Now}: [*] Getting a random auction owner from {_realm} ...");

            Auctions       _auctions   = explorer.GetAuctions(_realm);
            List <Auction> AuctionList = _auctions.CurrentAuctions.ToList();


            Random  rnd           = new Random();
            int     r             = rnd.Next(AuctionList.Count());
            Auction randomAuction = AuctionList[r];

            string auctionOwner = randomAuction.Owner;

            return(auctionOwner);
        }
コード例 #7
0
ファイル: AuctionTests.cs プロジェクト: Hiale/WowDotNetAPI
        public void Get_US_Realm_Auction_Data()
        {
            Auctions auctions = explorer.GetAuctions("skullcrusher");

            Assert.IsTrue(auctions.AllAuctionHouses.Auctions.Count() > 0);
        }
コード例 #8
0
ファイル: AuctionTests.cs プロジェクト: jimmble/WowDotNetAPI
        public void Get_Auction_Data()
        {
            Auctions auctions = explorer.GetAuctions("skullcrusher");

            Assert.IsTrue(auctions.CurrentAuctions.Count() > 0);
        }