Esempio n. 1
0
        public void CommandGetCompaniesReturnsCorrectTable()
        {
            RPCall call = new RPCall();

            CommandGetCompanies com = new CommandGetCompanies();
            RPResult            ret = com.Execute(call);

            Assert.AreEqual(ret.dt.TableName, "Companies");
            Assert.IsTrue(TestHelper.CompareDataTables(ret.dt, _th.GetTestCompanyDataTable()));
        }
Esempio n. 2
0
        public void CommandGetCompanyReturnsCorrectTable()
        {
            RPCall call = new RPCall();

            call.procedureArgs = new string[] { "1" };
            CommandGetCompany com = new CommandGetCompany();
            RPResult          ret = com.Execute(call);

            Assert.IsTrue(TestHelper.CompareDataTables(ret.dt, _th.GetTestCompanyDataTable()));
        }
Esempio n. 3
0
        public void CommandContactReturnsCorrectTable()
        {
            RPCall call = new RPCall();

            call.procedureArgs = new string[] { "Max" };

            CommandContact com = new CommandContact();
            RPResult       ret = com.Execute(call);

            Assert.AreEqual(ret.dt.TableName, "Contacts");
            Assert.IsTrue(TestHelper.CompareDataTables(ret.dt, _th.GetTestPersonDataTable()));
        }