public void AccountCreateAccountRequestAsync() { AutoResetEvent[] handles = new AutoResetEvent[] { new AutoResetEvent(false) }; Zencoder.CreateAccount( Guid.NewGuid().ToString() + "@example.com", Guid.NewGuid().ToString(), null, true, false, r => { Assert.IsTrue(r.Success); handles[0].Set(); }); WaitHandle.WaitAll(handles); }
public void AccountCreateAccountRequest() { CreateAccountResponse response = Zencoder.CreateAccount(Guid.NewGuid().ToString() + "@tastycodes.com", Guid.NewGuid().ToString(), null, true, false); Assert.IsTrue(response.Success); AutoResetEvent[] handles = new AutoResetEvent[] { new AutoResetEvent(false) }; Zencoder.CreateAccount( Guid.NewGuid().ToString() + "@tastycodes.com", Guid.NewGuid().ToString(), null, true, false, r => { Assert.IsTrue(r.Success); handles[0].Set(); }); WaitHandle.WaitAll(handles); }
public void AccountCreateAccountRequest() { CreateAccountResponse response = Zencoder.CreateAccount(Guid.NewGuid().ToString() + "@example.com", Guid.NewGuid().ToString(), null, true, false); Assert.IsTrue(response.Success); }