예제 #1
0
        public DataSet SelectOwnerTypeTest(IOwnerType OwnerType)
        {
            DataSet tableVerify = new DataSet();

            tableVerify = dbEntity.SelectObject(OwnerType) as DataSet;
            return(tableVerify);
        }
예제 #2
0
        public void VerifyOwnerType()
        {
            Random random = new Random();

            IOwnerType      ownerType         = BusinessObjectInitializer.CreateOwnerType();
            DBGenericEntity dbOwnerTypeEntity = new DBOwnerType(connManager);

            ownerType.Name = DATestUtils.GenerateString(50, true, false);
            ownerType.Id   = random.Next(1, 5);

            DataTable resultTable = SelectOwnerTypeTest(ownerType).Tables[0];

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

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