GetInventory() 공개 메소드

Returns pet inventories by status Returns a map of status codes to quantities
Thrown when fails to make API call
public GetInventory ( ) : int?>.Dictionary
리턴 int?>.Dictionary
예제 #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);
            }
        }
예제 #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);
            }
        }