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); }
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); }