public void Index_GET_Renders() { Test(async http => { await http.GetAsync(HomeActions.Index()); }); }
public void Index_GET() { WebAppTest(client => { var response = client.Get(HomeActions.Index()); response.Doc.Document.Body.TextContent.Should().Contain("Start a new application"); }); }
public void Overview_POST_StartsForm() { WebAppTest(client => { ExecutorStub.SetupCommand(It.IsAny <StartChangeOfCircs>(), new NextSection { Id = "form123", Section = Sections.Consent, }); var response = client.Get(HomeActions.Index()).Form <object>(1) .Submit(client); ExecutorStub.Executed <StartChangeOfCircs>().Length.Should().Be(1); response.ActionResultOf <RedirectResult>().Url.Should().NotBeNullOrWhiteSpace(); }); }