public void WithSimplePassword()
        {
            const string userName = "******";

            AdminQuery.CreateUser(userName, "12345");

            var exists = AdminQuery.Session.Access().UserExists(userName);

            Assert.IsTrue(exists);
        }
 public void WithRoleName()
 {
     Assert.Throws <SecurityException>(() => AdminQuery.CreateUser(SystemRoles.LockedRole, "0123456789"));
 }
 public void PublicUser()
 {
     Assert.Throws <SecurityException>(() => AdminQuery.CreateUser(User.PublicName, "12345"));
 }
 public void ExistingUser()
 {
     Assert.Throws <SecurityException>(() => AdminQuery.CreateUser(AdminUserName, "0123456789"));
 }