public void EqualsTest1() { Deployment deployment = new Deployment(); Deployment deploymentCompare = new Deployment(); Assert.IsTrue(deployment.Equals(deploymentCompare)); }
public void Draft_读取某租户下流程名的草稿定义(string bpmnFile) { var ex = Record.Exception(() => { string bpmnName = string.Join("", ctx.Guid2IntString(Guid.NewGuid())); Deployment deployment = AsyncHelper.RunSync <Deployment>(() => Save(bpmnFile, bpmnName)); Deployment draft = AsyncHelper.RunSync <Deployment>(() => client.Draft(ctx.TenantId, bpmnName)); Assert.NotNull(draft); Assert.True(deployment.Equals(draft)); AsyncHelper.RunSync(() => client.Remove(deployment.Id)); }); Assert.Null(ex); }
public void Draft_读取某租户下流程名的草稿定义(string bpmnFile) { var ex = Record.Exception(() => { string bpmnName = string.Join("", ctx.Guid2IntString(Guid.NewGuid())); Deployment deployment = Save(bpmnFile, bpmnName).GetAwaiter().GetResult(); Deployment draft = client.Draft(ctx.TenantId, bpmnName).GetAwaiter().GetResult(); Assert.NotNull(draft); Assert.True(deployment.Equals(draft)); client.Remove(deployment.Id).GetAwaiter().GetResult(); }); Assert.Null(ex); }