Example #1
0
        public void CanReadDataFromFile()
        {
            FileAccountRepository repo    = new FileAccountRepository();
            List <Account>        account = repo.GetData();

            Assert.AreEqual(3, account.Count());

            Account check = account[2];

            Assert.AreEqual("33333", check.AccountNumber);
            Assert.AreEqual("Premium Customer", check.Name);
            Assert.AreEqual(1000, check.Balance);
            Assert.AreEqual(AccountType.Premium, AccountType.Premium);
        }