public Category_Budget Update(Category_Budget category_budget)
 {
     return AddOrUpdate<Category_Budget>("mm_Categories_Budgets_Update", new {
         UserID = _userId,
         Budget_BudgetID = category_budget.Budget_BudgetID,
         Category_CategoryID = category_budget.Category_CategoryID,
         Amount = category_budget.Amount
     });
 }
        public void Data_Create_Category_Budget()
        {
            var repository = new Category_BudgetRepository(_dataConnectionString, 1);

            var category_budget = new MABMoney.Domain.Category_Budget {
                Budget_BudgetID = 1,
                Category_CategoryID = 4,
                Amount = 250.00M
            };

            var result = repository.Add(category_budget);

            Assert.IsTrue(result.Budget_BudgetID == 1);
            Assert.IsTrue(result.Category_CategoryID == 4);
            Assert.IsTrue(result.CategoryName == "Bills");
            Assert.IsTrue(result.CategoryType == CategoryType.Expense);
            Assert.IsTrue(result.Amount == 250.00M);
            Assert.IsTrue(result.CreatedBy == 1);
            Assert.IsTrue(result.CreatedDate.Date == DateTime.Now.Date);
            Assert.IsTrue(result.LastModifiedBy == 1);
            Assert.IsTrue(result.LastModifiedDate.Date == DateTime.Now.Date);
        }