public void test53_FetchDevices() { string key = "Device" + DateTime.Now.Ticks; _store.store(key, _testData); var devices = _store.FetchDevices(); Assert.AreEqual(devices["devices"][0], _testData); _store.Purge(); }
/// <summary> /// Internal helper for building a list of all devices. /// </summary> /// <returns>Dictionary List of all devices.</returns> private Dictionary <string, dynamic> FetchDevices() { try { Dictionary <string, dynamic> data = _store.FetchDevices(); if (!(data.Any())) { SetError(299, "Error : fetchDevices cannot read files from store."); } return(data); } catch (Exception ex) { SetError(299, "Exception : " + ex.Message + " " + ex.StackTrace); } return(null); }