Esempio n. 1
0
        public async Task FetchChildMultipleCriteria()
        {
            var dp    = new Server.ChildDataPortal();
            var child = await dp.FetchAsync <TestChild>("abc", 123);

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

            Assert.AreEqual("Int32", child.Name);
        }
Esempio n. 3
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);
        }
Esempio n. 4
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);
        }