public void TestAccountId()
        {
            SortedList<string, Int64> _accountList = new SortedList<string, Int64>()
            {
                {"*****@*****.**", 2310164391714063678},
                {"*****@*****.**", 3319232815535447622},
                {"*****@*****.**", 2784652845355988010},
                {"*****@*****.**", 827854384385604798}
            };

            foreach (KeyValuePair<string, Int64> _account in _accountList)
            {
                Logger.LogMessage($"{_account.Key} => {AccountId.Convert(_account.Key)}");
                Assert.AreEqual(_account.Value, AccountId.Convert(_account.Key));

            }
        }
Exemplo n.º 2
0
        public async Task TestCreateUserAsync()
        {
            TestContext.User.AddRange(new User[] {
                new User {
                    Name = "Loo Say Phoon", Email = "*****@*****.**", Mobile = "+601127275481", AccountId = AccountId.Convert("*****@*****.**")
                }
            });

            TestContext.SaveChanges();

            var _results = await TestContext.User.ToListAsync();
        }