Esempio n. 1
0
        public void TestPropsRetrieve()
        {
            EventSQLDB db    = new EventSQLDB(dataSource);
            EventProps props = (EventProps)db.Retrieve(2);

            Assert.AreEqual(props.ID, 2);
            Console.WriteLine(props.GetState());
        }
Esempio n. 2
0
        public void TestResetDatabase()
        {
            EventSQLDB db      = new EventSQLDB(dataSource);
            DBCommand  command = new DBCommand();

            command.CommandText = "usp_testingResetData";
            command.CommandType = CommandType.StoredProcedure;
            db.RunNonQueryProcedure(command);
        }