internal static WorkItemVerificationResult VerifyAssignation(WorkItem task) { if (task.IsUnassigned()) return new WorkItemVerificationResult { Result = VerificationResult.Warning, Messages = new List<string>(1) { Messages.TaskIsNotAssigned() }, }; return new WorkItemVerificationResult { Result = VerificationResult.Ok }; }