Exemplo n.º 1
0
        public async Task UpdateChild()
        {
            var dp    = new Server.ChildDataPortal();
            var child = await dp.FetchAsync <TestChild>();

            await dp.UpdateAsync(child, "update", 123);

            Assert.AreEqual("update/123", child.Name);
        }
Exemplo n.º 2
0
        public async Task DeleteSelfChild()
        {
            var dp    = new Server.ChildDataPortal();
            var child = await dp.FetchAsync <TestChild>();

            child.MarkForDeletion();
            await dp.UpdateAsync(child, "deleteme", 123);

            Assert.AreEqual("deleteme", child.Name);
        }