static async Task <SimulatorConfiguration> CreateConfiguration(AppSettings appSettings) { EmployeeDataSource employeeDataSource = new EmployeeDataSource(appSettings.EmployeeApiUri, appSettings.EmployeeApiKey); SimulatorConfiguration simConfig = SimulatorConfigManager.GetDefaultConfiguration(); simConfig.Employees = await GetEmployeesAsync(employeeDataSource, simConfig.FloorPeopleMapping.Sum(f => f.Value)); // Mark employees who will use break room. SimulatorConfigManager.SetEmployeesBreakroomUse(simConfig, .25m); // This should always be done last! SimulatorConfigManager.AssignEmployeesToOffices(simConfig); return(simConfig); }