@@ -24,7 +24,11 @@ public async Task WhenTheApplicationStarts_ItCanLoadLoadPages(string relativeUrl
2424    [ InlineData ( "/guidelines?rid=test-referral-id" ) ] 
2525    [ InlineData ( "/about?rid=abc123" ) ] 
2626    [ InlineData ( "/hello-world?rid=user-referral" ) ] 
27-     public  async  Task  WhenPagesAreAccessedWithRidParameter_TheyReturnContentSuccessfully ( string  relativeUrl ) 
27+     [ InlineData ( "/guidelines?rid=" ) ] 
28+     [ InlineData ( "/about?rid=   " ) ] 
29+     [ InlineData ( "/guidelines?foo=bar" ) ] 
30+     [ InlineData ( "/about?someOtherParam=value" ) ] 
31+     public  async  Task  WhenPagesAreAccessed_TheyReturnHtml ( string  relativeUrl ) 
2832    { 
2933        using  WebApplicationFactory  factory  =  new ( ) ; 
3034
@@ -41,23 +45,6 @@ public async Task WhenPagesAreAccessedWithRidParameter_TheyReturnContentSuccessf
4145        Assert . Contains ( "<html" ,  content ,  StringComparison . OrdinalIgnoreCase ) ; 
4246    } 
4347
44-     [ Theory ] 
45-     [ InlineData ( "/guidelines?rid=" ) ] 
46-     [ InlineData ( "/about?rid=   " ) ] 
47-     public  async  Task  WhenPagesAreAccessedWithEmptyRidParameter_TheyStillWork ( string  relativeUrl ) 
48-     { 
49-         using  WebApplicationFactory  factory  =  new ( ) ; 
50- 
51-         HttpClient  client  =  factory . CreateClient ( ) ; 
52-         using  HttpResponseMessage  response  =  await  client . GetAsync ( relativeUrl ) ; 
53- 
54-         Assert . Equal ( HttpStatusCode . OK ,  response . StatusCode ) ; 
55-         
56-         string  content  =  await  response . Content . ReadAsStringAsync ( ) ; 
57-         Assert . NotEmpty ( content ) ; 
58-         Assert . Contains ( "<html" ,  content ,  StringComparison . OrdinalIgnoreCase ) ; 
59-     } 
60- 
6148    [ Fact ] 
6249    public  async  Task  WhenTheApplicationStarts_NonExistingPage_GivesCorrectStatusCode ( ) 
6350    { 
@@ -68,21 +55,4 @@ public async Task WhenTheApplicationStarts_NonExistingPage_GivesCorrectStatusCod
6855
6956        Assert . Equal ( HttpStatusCode . NotFound ,  response . StatusCode ) ; 
7057    } 
71- 
72-     [ Theory ] 
73-     [ InlineData ( "/guidelines?foo=bar" ) ] 
74-     [ InlineData ( "/about?someOtherParam=value" ) ] 
75-     public  async  Task  WhenPagesAreAccessedWithNonRidParameters_TheyStillWork ( string  relativeUrl ) 
76-     { 
77-         using  WebApplicationFactory  factory  =  new ( ) ; 
78- 
79-         HttpClient  client  =  factory . CreateClient ( ) ; 
80-         using  HttpResponseMessage  response  =  await  client . GetAsync ( relativeUrl ) ; 
81- 
82-         Assert . Equal ( HttpStatusCode . OK ,  response . StatusCode ) ; 
83-         
84-         string  content  =  await  response . Content . ReadAsStringAsync ( ) ; 
85-         Assert . NotEmpty ( content ) ; 
86-         Assert . Contains ( "<html" ,  content ,  StringComparison . OrdinalIgnoreCase ) ; 
87-     } 
8858} 
0 commit comments