public List<Project> GetProjects(int number = 2) { var projects = new List<Project>(); for (var i = 0; i < number; ++i) { var project = new Project { Id = _projectCount++, Name = "Confirmit" + i }; projects.Add(project); } return projects; }
public List<Person> GetPersons(Project project, Product product, int number = 5) { var persons = new List<Person>(); for (var i = 0; i < number; ++i) { persons.Add(new Person { Id = _personCount++, FirstName = "User" + i, LastName = "Rocket", EMail = "*****@*****.**", Location = "YAR", EmployeeCode = "PET", TaskQuery = "assignee = sergeyp AND resolution = Fixed AND resolutiondate >= startOfMonth() ORDER BY updatedDate DESC", DomainName = "", Product = product, Project = project }); } return persons; }