GetItemID() public method

Returns the item ID of the item with the given name
public GetItemID ( string itemName, Data rarity, int level ) : int
itemName string Name of the item
rarity Data Rarity of the item
level int Level of the item
return int
        public void CommerceService_GetItemID_Invalid()
        {
            CommerceService cs = new CommerceService();

            var sw = new Stopwatch();
            sw.Start();
            var id = cs.GetItemID(INVALID_ITEM_NAME, Data.Enums.ItemRarity.Basic, 0);
            sw.Stop();
            Console.WriteLine("To search for an ID using an invalid name, it took {0}ms", sw.ElapsedMilliseconds);

            Assert.AreEqual(-1, id);
        }