コード例 #1
0
        public void GetAccount()
        {
            //Setup

            //Action
            account = accountCollection.GetAccount("LarsvdB");

            //Assert
            Assert.AreEqual(account.Email, "*****@*****.**");
        }
コード例 #2
0
        public bool VerifyAccount(int id, int privilege)
        {
            Account account = _collection.GetAccount(id);

            if (account == null)
            {
                return(false);
            }

            if (!account.AccountPrivilege.HasFlag((Account.AccountType)privilege))
            {
                return(false);
            }

            return(true);
        }
コード例 #3
0
 public Account Get(int id)
 {
     return(_collection.GetAccount(id));
 }