public void US616_AC5_VerifyMobilePageElements() { var viewModel = new VerifyMobileViewModelBuilder().Build(); var result = new VerifyMobileViewBuilder().With(viewModel).Render(); var phoneNumber = result.GetElementbyId("phoneNumber"); var verifyMobileCode = result.GetElementbyId("VerifyMobileCode"); phoneNumber.Should().NotBeNull(); verifyMobileCode.Should().NotBeNull(); }
public void ShowFindTraineeshipLink(bool shouldShow) { var viewModel = new VerifyMobileViewModelBuilder().ShowTraineeshipsLink(shouldShow).ShowTraineeshipsPrompt(false).Build(); var result = new VerifyMobileViewBuilder().With(viewModel).Render(); var findTraineeshipLink = result.GetElementbyId("find-traineeship-link"); if (shouldShow) { findTraineeshipLink.Should().NotBeNull(); } else { findTraineeshipLink.Should().BeNull(); } }