File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 5
5
using System . Reflection ;
6
6
using System . Text . Json . Serialization ;
7
7
using System . Threading . Tasks ;
8
+ using System . Web ;
8
9
using FluentAssertions ;
9
10
using FluentAssertions . Extensions ;
10
11
using Humanizer ;
@@ -208,7 +209,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
208
209
await dbContext . SaveChangesAsync ( ) ;
209
210
} ) ;
210
211
211
- string route = $ "/filterableResources?filter=equals(someDateTimeOffset,'{ WebUtility . UrlEncode ( resource . SomeDateTimeOffset . ToString ( "O" ) ) } ')";
212
+ string route = $ "/filterableResources?filter=equals(someDateTimeOffset,'{ HttpUtility . UrlEncode ( resource . SomeDateTimeOffset . ToString ( "O" ) ) } ')";
212
213
213
214
// Act
214
215
( HttpResponseMessage httpResponse , Document responseDocument ) = await _testContext . ExecuteGetAsync < Document > ( route ) ;
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public async Task Can_filter_equality_on_special_characters()
37
37
// Arrange
38
38
var resource = new FilterableResource
39
39
{
40
- SomeString = "This, that & more"
40
+ SomeString = "This, that & more + some "
41
41
} ;
42
42
43
43
await _testContext . RunOnDatabaseAsync ( async dbContext =>
Original file line number Diff line number Diff line change @@ -582,7 +582,6 @@ public async Task Renders_correct_top_level_links_for_page_number(int pageNumber
582
582
{
583
583
// Arrange
584
584
WebAccount account = _fakers . WebAccount . Generate ( ) ;
585
- account . UserName = $ "&{ account . UserName } ";
586
585
587
586
const int totalCount = 3 * DefaultPageSize + 3 ;
588
587
List < BlogPost > posts = _fakers . BlogPost . Generate ( totalCount ) ;
@@ -599,7 +598,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
599
598
await dbContext . SaveChangesAsync ( ) ;
600
599
} ) ;
601
600
602
- string routePrefix = $ "/blogPosts?filter=equals(author.userName,'{ WebUtility . UrlEncode ( account . UserName ) } ')" +
601
+ string routePrefix = $ "/blogPosts?filter=equals(author.userName,'{ account . UserName } ')" +
603
602
"&fields[webAccounts]=userName&include=author&sort=id&foo=bar,baz" ;
604
603
605
604
string route = $ "{ routePrefix } &page[number]={ pageNumber } ";
You can’t perform that action at this time.
0 commit comments