public void AddUserAccount()
        {
            var service = new UserAccountService(new AccountDbContext());
            var result  = service.Add(new UserAccount
            {
                TenantId = 100000,
                Name     = "7tiny",
                Email    = "*****@*****.**",
                Phone    = "130110110110",
                Password = MD5Helper.GetMd5Hash(string.Concat(AccountConst.SALT_BEFORE, "123456", AccountConst.SALT_AFTER))
            });

            Assert.True(result.IsSuccess);
        }
示例#2
0
 public void CreateAccount()
 {
     _userAccountService.Add("Kevin Coulson", "kmcoulson", "Syren134");
     Assert.True(true);
 }