Exemplo n.º 1
0
        public async Task SendReceivePortalList_Fetch()
        {
            editObjectList = await portal.Fetch();

            Assert.IsTrue(editObjectList.ID.HasValue);
            Assert.IsTrue(editObjectList.FetchCalled);
            Assert.IsFalse(editObjectList.IsNew);
            Assert.IsFalse(editObjectList.IsChild);
            Assert.IsFalse(editObjectList.IsModified);
            Assert.IsFalse(editObjectList.IsSelfModified);
            Assert.IsFalse(editObjectList.IsBusy);
            Assert.IsFalse(editObjectList.IsSelfBusy);
        }
Exemplo n.º 2
0
        public void TestInitialize()
        {
            portal = scope.Resolve <ISendReceivePortal <IEditObjectList> >();
            list   = portal.Fetch().Result;
            child  = list.CreateAdd().Result;
            child.MarkUnmodified();
            child.MarkOld();

            Assert.IsFalse(list.IsModified);
        }