Example #1
0
        public IQuickTransaction CreateQuickTransaction(IAccount account, ICategory category, string name, decimal total,
                                                        long id,
                                                        decimal weight, bool askForTotal, bool askForWeight)
        {
            var result =
                _storage.CreateQuickTransaction(account, category, name, total, id, weight, askForTotal, askForWeight);

            _isDirty = true;
            return(result);
        }
Example #2
0
        public void CreateTransactionTest()
        {
            var newTransaction = _storage.CreateQuickTransaction(_transaction);


            Assert.AreEqual(_transaction.Name, newTransaction.Name);
            Assert.AreEqual(_transaction.Category.Id, newTransaction.Category.Id);
            Assert.AreEqual(_transaction.Account.Id, newTransaction.Account.Id);
            Assert.AreEqual(_transaction.Total, newTransaction.Total);
        }