public DataSet SelectCostIncomeTypeTest(ICostIncomeType costIncomeType)
        {
            DataSet tableVerify = new DataSet();

            tableVerify = dbEntity.SelectObject(costIncomeType) as DataSet;
            return(tableVerify);
        }
        public void VerifyCostIncomeType()
        {
            Random random = new Random();

            ICostIncomeType costIncomeType = BusinessObjectInitializer.CreateCostIncomeType();

            costIncomeType.Name = DATestUtils.GenerateString(30, true, false);
            costIncomeType.Id   = random.Next(1, 10);

            DataTable resultTable = SelectCostIncomeTypeTest(costIncomeType).Tables[0];

            //Verifies that the table contains the correct column names and order
            StringCollection columns = new StringCollection();

            columns.AddRange(new string[] { "Id",
                                            "Name",
                                            "DefaultAccount" });

            DATestUtils.CheckTableStructure(resultTable, columns);
        }