예제 #1
0
        public void CreateAccount()
        {
            //Setup
            Account insertAccount = new Account()
            {
                UserName    = "******",
                FirstName   = "Lars",
                LastName    = "van den Brandt",
                Email       = "*****@*****.**",
                PhoneNumber = 0636484221,
                Password    = "******"
            };

            bool found = false;

            //Action
            accountCollection.CreateAccount(insertAccount);

            //Assert
            foreach (Account account in accountCollection.GetAccounts())
            {
                if (account.UserName.Equals("LarsvandenBrandt"))
                {
                    found = true;
                }
            }
            Assert.IsTrue(found);
        }