示例#1
0
 public void ThenPerformRelevantActions()
 {
     if (CommonConstants.A_B_C_D_E.Contains(_firstNameFirstChar))
     {
         _scenarioContext.Add(CommonConstants.Step, "=> " + SelectNuGetPackages_Nunit_3_12_0);
         EditorPage.SelectNugetPackage("NUnit", "3.12.0");
     }
     else if (CommonConstants.F_G_H_I_J_K.Contains(_firstNameFirstChar))
     {
         _scenarioContext.Add(CommonConstants.Step, "=> " + ClickShareButton);
         EditorPage.ShowShareDialogModal();
     }
     else if (CommonConstants.L_M_N_O_P.Contains(_firstNameFirstChar))
     {
         _scenarioContext.Add(CommonConstants.Step, "=> " + ClickHideOptionsPanel);
         EditorPage.HideOptionsPanel();
     }
     else if (CommonConstants.Q_R_S_T_U.Contains(_firstNameFirstChar))
     {
         _scenarioContext.Add(CommonConstants.Step, "=> " + ClickSaveButton);
         EditorPage.TrySavingChangesForUnLoggedUser();
     }
     else if (CommonConstants.V_W_X_Y_Z.Contains(_firstNameFirstChar))
     {
         _scenarioContext.Add(CommonConstants.Step, "=> " + ClickGettingStartedButton);
         EditorPage.ClickGettingStartedNavButton();
     }
 }