Esempio n. 1
0
        public void TestUpdate()
        {
            AccountVM accountVM = new AccountVM(50, 0);

            accountVM.GetAccount(-100);

            accountVM.CurrentAccount.Shortname = "Иванов";

            accountVM.Update();

            accountVM.GetAccount(-100);

            Assert.AreEqual("Иванов", accountVM.CurrentAccount.Shortname);
        }
Esempio n. 2
0
        public void TestDelete()
        {
            AccountVM.TestService();

            AccountVM accountVM = new AccountVM(50, 0);

            accountVM.GetAccount(-500);

            accountVM.Delete();

            Object res = accountVM.GetAccount(-500);

            Assert.IsNull(res);
        }
Esempio n. 3
0
        public void TestInsert()
        {
            AccountVM accountVM = new AccountVM(50, 0);

            accountVM.CurrentAccount = new Proxy.EA_VC_ORGANIZATION(-500, "Иванов");

            accountVM.Insert();

            Object res = accountVM.GetAccount(-500);

            Assert.IsNotNull(res);
        }