Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        public void AccountCreateAccountRequest()
        {
            CreateAccountResponse response = Zencoder.CreateAccount(Guid.NewGuid().ToString() + "@example.com", Guid.NewGuid().ToString(), null, true, false);

            Assert.IsTrue(response.Success);
        }