Esempio n. 1
0
        public async Task loginByNewUser()
        {
            string   login = "******" + rnd.Next(10000);
            User     user  = new User(login, true);
            Password pass  = new Password();

            pass.Value          = "123456";
            pass.EffectiveDate  = DateTime.Now;
            pass.ExpirationDate = DateTime.Now.AddMonths(3);
            user.Password       = pass;
            user = AMUserHelpers.createRootUser(user);
            await LoginHelper.AMloginAsyncSuccess(user.Login, pass.Value);

            AMUserHelpers.deleteRootUser(user.Id);
        }