public async Task <AsycudaDocumentSetEx> NewDocumentSet() { var docset = await WaterNut.DataSpace.BaseDataModel.Instance.CreateAsycudaDocumentSet().ConfigureAwait(false); using (var ctx = new AsycudaDocumentSetExService()) { return(await ctx.GetAsycudaDocumentSetExByKey(docset.AsycudaDocumentSetId.ToString()).ConfigureAwait(false)); } }
public void LoadRange_All_DocumentTypeEqualsIM4() { var s = new AsycudaDocumentSetExService(); var exp = "All"; var navExp = new Dictionary <string, string> { { "AsycudaDocuments", "DocumentType == \"IM4\"" } }; var lst = s.LoadRangeNav(0, 50, exp, navExp); Assert.AreEqual(0, lst.Result.Count()); }
public void GetAsycudaDocumentSetExsByExpression_All_DocumentTypeEqualsIM7() { var s = new AsycudaDocumentSetExService(); var exp = "All"; var navExp = new Dictionary <string, string> { { "AsycudaDocuments", "DocumentType == \"IM7\"" } }; var lst = s.GetAsycudaDocumentSetExsByExpressionNav(exp, navExp); Assert.AreEqual(13, lst.Result.Count()); }