Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public int AddSingleCategory()
        {
            CleanAll();;

            DbCategoryDto category = new DbCategoryDto()
            {
                Name = "TestCategory"
            };

            dbUtils.Insert(category);

            return(category.Id);
        }