public AvailableTask(TenroxTask task, TenroxClient client) { if (task == null) throw new ArgumentNullException("task"); if (client == null) throw new ArgumentNullException("client"); _task = task; _client = client; }
private AvailableTask Build(AssignmentAttribute attribute) { TenroxTask task = new TenroxTask(attribute.AssignmentName, attribute.AssignmentUid); TenroxClient client = new TenroxClient(attribute.ClientName, attribute.ClientUid); return new AvailableTask(task, client); }