public async Task BusinessObjectAsync_Fetch() { var portal = new ObjectPortal <RootObjectAsyncValid>(); var result = await portal.FetchAsync(); Assert.IsNotNull(result); Assert.IsNotNull(result.BusinessObject); Assert.IsNotNull(result.BusinessObjectCriteria); }
public async Task BusinessObject_Fetch() { var portal = new ObjectPortal <BusinessObject>(); var criteria = new Criteria(); var result = await portal.FetchAsync(criteria); Assert.AreEqual(result.Value, criteria.Value); }
public async Task BusinessObjectAsync_Fetch_Criteria() { var portal = new ObjectPortal <RootObjectAsyncValid>(); var criteria = new Criteria(); var result = await portal.FetchAsync(criteria); Assert.IsNotNull(result); Assert.IsNotNull(result.BusinessObject); Assert.IsNotNull(result.BusinessObjectCriteria); Assert.AreEqual(result.BusinessObjectCriteria.Value, criteria.Value); Assert.AreNotEqual(result.BusinessObject.Value, criteria.Value); }