public void TestSendWithRetry() { IotApi api = new IotApi(); api .RegisterRetry(2, TimeSpan.FromSeconds(1)) .RegisterPersist(new Dictionary <string, object>()) .RegisterModule(getDefaultModule(true)); api.Open(new System.Collections.Generic.Dictionary <string, object>()); api.SendAsync(new { Prop1 = 1.2, Prop2 = ":)" }, (msgs) => { Assert.IsTrue(msgs.Count == 1); }, (msgs, err) => { throw err; }, null).Wait(); }