public void When_confirm_button_clicked_Then_confirm_dialog_pops_up_and_okay_button_sets_result_to_true()
{
Threaded<Session>
.CurrentBlock<DialogPage>()
.VerifyThat(x => x.ConfirmResult.Should().Be("Not Clicked"))
.ConfirmButton.Click()
.VerifyThat(x => x.Text.Should().Be("confirm"))
.Accept<DialogPage>()
.VerifyThat(x => x.ConfirmResult.Should().Be("true"));
}