Esempio n. 1
0
        public void CrudTest()
        {
            Customer c = new Customer(RhspDataID.Generate())
            {
                Code = "TEST",
                Name = "Test Company"
            };

            adapter.Create(c);

            Customer c2 = adapter.Get(c.DataID);

            c2.Name += " TEST";
            adapter.Update(c2);

            Customer c3 = adapter.Get(c.DataID);

            Assert.AreEqual(c2.Name, c3.Name);

            adapter.Delete(c.DataID);
        }