File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public record SearchRequest
2222 public bool ForWeb { get ; set ; }
2323 [ MaxLength ( 32 ) ]
2424 public string CodePK { get ; set ; }
25- public bool IsEmpty => string . IsNullOrWhiteSpace ( Content ) && string . IsNullOrWhiteSpace ( FileName ) && string . IsNullOrWhiteSpace ( FileExtension ) && string . IsNullOrWhiteSpace ( FilePath )
25+ public bool IsEmpty => string . IsNullOrWhiteSpace ( Content ) && string . IsNullOrWhiteSpace ( FileName ) && string . IsNullOrWhiteSpace ( FileExtension ) && string . IsNullOrWhiteSpace ( FilePath ) && string . IsNullOrWhiteSpace ( CodePK )
2626 || IndexPk == Guid . Empty ;
2727 }
2828}
Original file line number Diff line number Diff line change 11@page " /Details/{CodePK}/{IndexPK}"
22@page " /Details/{CodePK}/{IndexPK}/{ContentQuery}"
3+ @page " /Details/{CodePK}/{IndexPK}/{CaseSensitive:bool}/{PhaseQuery:bool}"
34@page " /Details/{CodePK}/{IndexPK}/{ContentQuery}/{CaseSensitive:bool}/{PhaseQuery:bool}"
45@inject HttpClient Client
56@inject CodeIndexConfiguration Config
Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ public void TestConstructor()
3636 request . FileExtension = " " ;
3737 request . FilePath = null ;
3838 request . FileName = null ;
39+ Assert . IsFalse ( request . IsEmpty ) ;
40+
41+ request . CodePK = null ;
3942 Assert . IsTrue ( request . IsEmpty ) ;
4043 }
4144 }
You can’t perform that action at this time.
0 commit comments