Exemplo n.º 1
0
 private static Employee GenerateEmployee(Office office, int taskCount)
 {
     var employee = new Employee { Id = GenerateId(), Name = GenerateString(), Office = office };
     while (taskCount-- > 0)
     {
         employee.Tasks.Add(GenerateTask(employee));
     }
     return employee;
 }
Exemplo n.º 2
0
 private static Task GenerateTask(Employee employee)
 {
     return new Task { Id = GenerateId(), Description = GenerateString(), Assignee = employee };
 }