GetInventory() public method

Returns pet inventories by status Returns a map of status codes to quantities
Thrown when fails to make API call
public GetInventory ( ) : int?>.Dictionary
return int?>.Dictionary
Example #1
0
        public void TestGetInventory()
        {
            // set timeout to 10 seconds
            Configuration c1 = new Configuration (timeout: 10000);

            StoreApi storeApi = new StoreApi (c1);
            Dictionary<String, int?> response = storeApi.GetInventory ();

            foreach(KeyValuePair<string, int?> entry in response)
            {
                Assert.IsInstanceOf (typeof(int?), entry.Value);
            }
        }
Example #2
0
        public void GetInventoryTest()
        {
            // TODO: add unit test for the method 'GetInventory'
            //var response = instance.GetInventory();
            //Assert.IsInstanceOf<Dictionary<string, int?>> (response, "response is Dictionary<string, int?>");

            // set timeout to 10 seconds
            Configuration c1 = new Configuration (timeout: 10000);

            StoreApi storeApi = new StoreApi (c1);
            Dictionary<String, int?> response = storeApi.GetInventory ();

            foreach(KeyValuePair<string, int?> entry in response)
            {
                Assert.IsInstanceOf (typeof(int?), entry.Value);
            }
        }