public int AddSingleStatement() { CleanAll(); DbCategoryDto category = new DbCategoryDto() { Name = "TestCategory" }; dbUtils.Insert(category); DbStatementDto statement = new DbStatementDto() { Amount = 10, Direction = 0, DueDate = DEFAULT_DATE, Paid = false, CategoryId = category.Id, Description = "Test Description" }; dbUtils.Insert(statement); return(statement.Id); }
public int AddSingleCategory() { CleanAll();; DbCategoryDto category = new DbCategoryDto() { Name = "TestCategory" }; dbUtils.Insert(category); return(category.Id); }