public void WaitForTabSection(Tab tab) { IWebElement elementToWait = null; switch (tab) { case Tab.MetaData: elementToWait = new MetaData().Title; break; case Tab.PhaseDetails: elementToWait = new PhaseDetails().CompetitionEndDate; break; case Tab.Details: elementToWait = new Details().Tabs; break; case Tab.Publish: elementToWait = new Publish().PublishChanges; break; } Utils.Wait(10, elementToWait); }
void FillArray() { AllPhases[0] = new PhaseDetails ( "Fast", 2.5f, 2.5f, .1f, .05f, new Direction[2] { Direction.Right, Direction.Left }, new Dictionary <ObstacleType, float>() { } ); AllPhases[1] = new PhaseDetails ( "Slow", 1.5f, 1.5f, .1f, .05f, new Direction[2] { Direction.Up, Direction.Down }, new Dictionary <ObstacleType, float>() { } ); }
public void PhaseChange(PhaseDetails newPhase) { directionsAllowedInPhase.Clear(); directionsAllowedInPhase = new List <Direction>(newPhase.AllowedDirectoins); blockSpeed = newPhase.BlockSpeed; obstacleChance = newPhase.ObstacleChance; doubleSidedSpawnChance = newPhase.DoubleSidedSpawnChance; obstaclesAllowed = newPhase.AllowedObjects; }
void GetPhase(int score) { if (score % newPhaseBy == 0 || score == 0) { PhaseDetails newPhase = ChoosePhase(); //find way to call choosephase again if Getphase matches past phases ImplementPhase(newPhase); pastPhases.Add(newPhase); phasesUsed++; } }
void OnNewPhase(PhaseDetails phaseDetails) { StopAllCoroutines(); if (text.enabled) { text.enabled = false; } ActivateBlink(increase, amountOfCor); text.text = "New " + phaseDetails.PhaseName + " Phase!"; }
void ReleaseDesignerOutlets() { if (Banner != null) { Banner.Dispose(); Banner = null; } if (PhaseDetails != null) { PhaseDetails.Dispose(); PhaseDetails = null; } if (PhaseSummary != null) { PhaseSummary.Dispose(); PhaseSummary = null; } if (TopGunSyllabusLabel != null) { TopGunSyllabusLabel.Dispose(); TopGunSyllabusLabel = null; } }
PhaseDetails ChoosePhase() { PhaseDetails newPhase = Phases.Instance.AllPhases[Random.Range(0, Phases.Instance.AllPhases.Length)]; return(newPhase); }
void ImplementPhase(PhaseDetails phase) { //Implement phase var in objspawner NewPhase.Invoke(phase); }
public async Task <bool> PhaseActiveAsync(byte phase) { var phaseDetails = await PhaseDetails.FindAsync(phase); return(phaseDetails is not null && phaseDetails.StartsAt <= DateTimeOffset.UtcNow); }
void ImplementPhase(PhaseDetails phase) { objSpawner.PhaseChange(phase); }
public PhaseDetailsPageOps() { page = new PhaseDetails(); PageFactory.InitElements(SeleniumHelper.Browser.WebDriver, page); }
public IActionResult Post(IndividualProjectPage page) { Project project = new Project(page.ID, page.Name, page.desc, page.startDate, page.endDate, page.completion, page.salaryBudget, page.totalInvoice, page.materialBudget, page.spendToDate, page.progressSurveySent, page.progressSurveyResult, page.followupSurveySent, page.followupSurveyResult, page.isProposal, page.costMultiplier, page.isUnderISO13485, page.businessCode, page.lead[0].name); // <-- in the param _projectRepository.Add(project); for (int i = 0; i < page.phaseArr.Count; i++) { PhaseArr currentPhaseArr = page.phaseArr[i]; Phase phase = new Phase(currentPhaseArr.phaseID, page.ID, currentPhaseArr.name, currentPhaseArr.startDate, currentPhaseArr.endDate, currentPhaseArr.isRecordDone, currentPhaseArr.predictedDurationInWeeks, currentPhaseArr.actualDurationInWeeks, currentPhaseArr.impact, 0, 0, null); phase.MaterialProjectedBudget = page.material[i].projectedBudget; phase.MaterialActualBudget = page.material[i].actualBudget; phase.MaterialImpact = page.material[i].impact; _phaseRepository.Add(phase); } EmployeeAssignment ea = new EmployeeAssignment(); for (int i = 0; i < page.employeeSalaryList.Count; i++) { ea.EmployeeId = page.employeeSalaryList[i].empID; ea.Position = "somePosition"; //hardcoded for now? ea.SalaryMultiplier = page.costMultiplier; for (int j = 0; j < page.employeeSalaryList[i].phaseDetailsList.Count; j++) { PhaseDetails currentPhaseDetails = page.employeeSalaryList[i].phaseDetailsList[j]; ea.PhaseId = currentPhaseDetails.phaseID; ea.ActualHours = currentPhaseDetails.actualHr; ea.ProjectedHours = currentPhaseDetails.budgetHr; ea.Impact = currentPhaseDetails.impact; for (int z = 0; z < page.lead.Count; z++) { if (ea.EmployeeId == page.lead[z].empID) { ea.IsProjectManager = true; } else { ea.IsProjectManager = false; } } _employeeAssignmentRepository.Add(ea); } } ProjectedWorkload pw = new ProjectedWorkload(); for (int i = 0; i < page.workloadArr.Count; i++) { WorkloadArr currentWorkloadArr = page.workloadArr[i]; foreach (Employee e in _employeeRepository.GetAll()) { if (e.EmployeeId == currentWorkloadArr.empID) { pw.ProjectId = page.ID; pw.EmployeeId = e.EmployeeId; for (int k = 0; k < 6; k++) { pw.Month = DateTime.Now.AddMonths(k).Month; pw.Year = DateTime.Now.AddMonths(k).Year; //pw.Month = ControllerHelper.CalculateCurrentMonth(currentMonth, k-1); pw.Hours = currentWorkloadArr.getHoursWorked(k + 1); _projectedWorkloadRepository.Add(pw); } } } } foreach (InvoiceArr i in page.invoiceArr) { Invoice invoice = new Invoice(page.ID, "placeholdername", i.date, i.amount); _invoiceRepository.Add(invoice); } return(new OkObjectResult(201)); }