protected internal virtual void createTask(string groupId, string tenantId) { ITask task = taskService.NewTask(); task.TenantId = tenantId; taskService.SaveTask(task); if (!string.ReferenceEquals(groupId, null)) { taskService.AddCandidateGroup(task.Id, groupId); taskIds.Add(task.Id); } }
// add candidate group public virtual void addCandidateGroupWithAuthenticatedTenant() { identityService.SetAuthentication("aUserId", null, new List <string>() { TENANT_ONE }); taskService.AddCandidateGroup(task.Id, "demo"); // then Assert.That(taskService.CreateTaskQuery() //.TaskCandidateGroup("demo") .Count(), Is.EqualTo(1L)); }