public override void SetUp() { base.SetUp(); String username = "******" + CurrentTimeMillis(); AppUtil.CreateNewUser(username, "dummypassword"); }
public override void SetUp() { base.SetUp(); string uname = "Test-" + CurrentTimeMillis(); AppUtil.CreateNewUser(uname, "password"); }
public override void SetUp() { base.SetUp(); string uname = "kiiqueryTest-" + CurrentTimeMillis(); AppUtil.CreateNewUser(uname, "123456"); }
public override void SetUp() { base.SetUp(); member1 = AppUtil.CreateNewUser("kiigrouptest-" + CurrentTimeMillis(), "123456"); member2 = AppUtil.CreateNewUser("kiigrouptest-" + CurrentTimeMillis(), "123456"); // owner AppUtil.CreateNewUser("kiigrouptest-" + CurrentTimeMillis(), "123456"); }
public override void SetUp() { EUApp app = new EUApp(); Kii.Initialize(app.AppId, app.AppKey, app.BaseUrl); Kii.Logger = new TestLogger(); string uname = "Test-" + CurrentTimeMillis(); AppUtil.CreateNewUser(uname, "password"); }
public void Test_FindUserByEmail_Asynchronous_ForEscapingAtmark() { // Create KiiUser to find string emailDomain = "@testkii.com"; string emailLocalPart = "kiiuserfindmail." + CurrentTimeMillis(); string emailAddress = emailLocalPart + emailDomain; KiiUser findUser = KiiUser.BuilderWithEmail(emailAddress).Build(); findUser.Register("123456"); string findUserUriStr = findUser.Uri.ToString(); KiiUser.LogOut(); // Create new user string uname = "kiiuserfindtest-" + CurrentTimeMillis(); AppUtil.CreateNewUser(uname, "123456"); CountDownLatch cd = new CountDownLatch(1); KiiUser outUser = null; Exception outExp = null; KiiUser.FindUserByEmail(emailAddress, (KiiUser retUser, Exception retExp) => { outUser = retUser; outExp = retExp; cd.Signal(); }); if (!cd.Wait(new TimeSpan(0, 0, 0, 3))) { Assert.Fail("Callback not fired."); } Assert.IsNull(outExp); Assert.IsNotNull(outUser); Assert.AreEqual(emailAddress, outUser.Email); Assert.AreEqual(findUserUriStr, outUser.Uri.ToString()); }
public void Test_FindUserByEmail_Synchronous_ForEscapingAtmark() { // Create KiiUser to find string emailDomain = "@testkii.com"; string emailLocalPart = "kiiuserfindmail." + CurrentTimeMillis(); string emailAddress = emailLocalPart + emailDomain; KiiUser findUser = KiiUser.BuilderWithEmail(emailAddress).Build(); findUser.Register("123456"); string findUserUriStr = findUser.Uri.ToString(); KiiUser.LogOut(); // Create new user string uname = "kiiuserfindtest-" + CurrentTimeMillis(); AppUtil.CreateNewUser(uname, "123456"); KiiUser searchUser = KiiUser.FindUserByEmail(emailAddress); Assert.IsNotNull(searchUser); Assert.AreEqual(emailAddress, searchUser.Email); Assert.AreEqual(findUserUriStr, searchUser.Uri.ToString()); }