public void Ineligible_GET() { WebAppTest(client => { var response = client.Get(BsgActions.Ineligible("form")); response.Text.ToLower().Should().Contain("you don't seem to qualify"); }); }
public void NextSection_RedirectToIneligible() { WebAppTest(client => { ExecutorStub.SetupCommand(It.IsAny <AddApplicantDetails>(), new NextSection { Type = NextType.Ineligible, Id = "form123" }); var response = client.Get(BsgActions.ApplicantDetails("form123")).Form <ApplicantDetails>(1).Submit(client); response.ActionResultOf <RedirectResult>().Url.Should().Be(BsgActions.Ineligible("form123")); }); }