コード例 #1
0
        public async Task BusinessObjectAsync_Create()
        {
            var portal = new ObjectPortal <RootObjectAsyncValid>();

            var result = await portal.CreateAsync();

            Assert.IsNotNull(result);
            Assert.IsNotNull(result.BusinessObject);
            Assert.IsNotNull(result.BusinessObjectCriteria);
        }
コード例 #2
0
        public async Task BusinessObject_Create()
        {
            var portal = new ObjectPortal <BusinessObject>();

            // Doesn't really matter that BusinesObject.Create is not async
            // Takes no special handling in ObjectPortal
            var result = await portal.CreateAsync();

            Assert.IsNotNull(result);
        }