Beispiel #1
0
        private async Task CategoriesCanBeAdded()
        {
            var category = new Category
            {
                ActualTransactions  = new List <Transaction>(),
                PlannedTransactions = new List <Transaction>(),
                Description         = "test",
                IsExpense           = false,
                Name = "test",
            };

            await _budgetRepository.AddCategory(_testBudget.Id, category);

            await GetBudget();

            Assert.True(_testBudget.Categories.Where(x => x.Name == "test" && x.IsExpense == false).Count() > 0);
        }