Exemplo n.º 1
0
        private void btnAddAccount_Click(object sender, EventArgs e)
        {
            K2DS.K2AccountDS svc = new K2DS.K2AccountDS();
            K2DataObjects.Account account = new K2DataObjects.Account();
            account.FirmCode="ZZZZ";
            account.AccountCode="acme";
            account.LongName="Some very long name";
            account.VenueCode="super";

            svc.Insert(account,true);
        }
Exemplo n.º 2
0
        public void AddAccountTest()
        {
            K2DS.K2AccountDS svc = new K2DS.K2AccountDS();
            K2DataObjects.Account account = new K2DataObjects.Account();
            account.FirmCode = "ZZZZ";
            account.AccountCode = "ZZ01";
            account.LongName = DateTime.Now.Ticks.ToString();
            account.VenueCode = "V001";
            svc.Insert(account, true);

            var accountResult = svc.GetAccount("ZZ01");
            Assert.AreEqual(accountResult.AccountCode, account.AccountCode);

            Assert.AreEqual(accountResult.LongName, account.LongName);
        }
Exemplo n.º 3
0
 public void Update(Account account)
 {
     K2DS.K2AccountDS accountDS = new K2DS.K2AccountDS();
     accountDS.Insert(account, true);
 }