Пример #1
0
        public void DeleteAccountTest()
        {
            _storage.CreateAccount(_account);
            _storage.DeleteAccount(_account);


            var numberOfAccounts = _storage.GetAllAccounts().Count();


            Assert.AreEqual(0, numberOfAccounts);
        }
Пример #2
0
        public void DeleteAccountTest()
        {
            var factory = new RegularAccountFactory();
            var storage = new SqLiteAccountStorage(factory);

            storage.DeleteAllData();
            var account = CreateAccount();

            storage.CreateAccount(account);
            storage.DeleteAccount(account);


            var numberOfAccounts = storage.GetAllAccounts().Count();


            Assert.AreEqual(0, numberOfAccounts);
        }