Esempio n. 1
0
        public void GetAccount()
        {
            //Setup

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

            //Assert
            Assert.AreEqual(account.Email, "*****@*****.**");
        }
        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);
        }
 public Account Get(int id)
 {
     return(_collection.GetAccount(id));
 }