protected virtual void OnWorkException(int hours, Exception ex) { WorkException?.Invoke(this, new WorkEventArgs(hours, ex)); }
public WorkExceptionPageStepDefinitions(IWebDriver webDriver, ScenarioContext scenarioContext) : base(webDriver) { WorkException = new WorkException(webDriver); _scenarioContext = scenarioContext; }