public void SetDPS(CharacterCalculationsRetribution calc) { calc.WhiteSkill = White; calc.SealSkill = Seal; calc.SealDotSkill = SealDot; calc.CommandSkill = SoC; calc.JudgementSkill = Judge; calc.TemplarsVerdictSkill = TV; calc.CrusaderStrikeSkill = CS; calc.ConsecrationSkill = Cons; calc.ExorcismSkill = Exo; calc.HolyWrathSkill = HW; calc.HammerOfWrathSkill = HoW; calc.GoakSkill = GoaK; calc.DPSPoints = White.GetDPS() + Seal.GetDPS() + SealDot.GetDPS() + SoC.GetDPS() + Judge.GetDPS() + CS.GetDPS() + TV.GetDPS() + Exo.GetDPS() + HW.GetDPS() + Cons.GetDPS() + HoW.GetDPS() + GoaK.GetDPS() + calc.OtherDPS; }
/// <summary> /// Checks the last SoC specified in socPath /// </summary> /// <param name="socPath">string '/' seperated path to the desired SoC</param> public void ApplySoC(string socPath, string hierarchy = "OCGDMF") { //hierarchy = Orginazation, Company, Group, Division, Market, Facility var paths = socPath.Split('/'); SoC node = new SoC(); HpgElement socParent = new HpgElement(_dialog); for (int i = 0; i < paths.Count() - 1; i++) { node = AvailableSoCs(socParent, paths[i].Trim()).Last(s => RegExRemove(s.Name.Text).ToLower().Equals(RegExRemove(paths[i]).ToLower()) && s.Hierarchy.ToUpper().Equals(hierarchy[i].ToString())); socParent = node.row; node.Name.Click(); } node = AvailableSoCs(socParent, paths.Last()).Last(s => RegExRemove(s.Name.Text).ToLower().Equals(RegExRemove(paths.Last()).ToLower()) && s.Hierarchy.ToUpper().Equals(hierarchy[paths.Count() - 1].ToString())); node.Name.Click(); node.Checkbox.Check(); HpgAssert.True(SelectedSoCs().FindAll(s => RegExRemove(s.Name.Text).ToLower().Equals(RegExRemove(paths.Last()).ToLower()) && s.Hierarchy.ToUpper().Equals(hierarchy[paths.Count() - 1].ToString())).Any(), "Verify specified SoC has been selected"); }
public List <SoC> AvailableSoCs(SoC parent) { return(AvailableSoCs(parent.row)); }