File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -20,16 +20,16 @@ public class PaginationTests : TestContextBase
2020 public void PaginationRendersCorrectly ( )
2121 {
2222 // Arrange
23- var cut = RenderComponent < Components . Pagination . Pagination > (
24- ( "Id" , "testId" ) ,
25- ( "ItemCount" , 15 ) ,
26- ( "SelectedPage" , 1 ) ,
27- ( "ShowItemCount" , true )
23+ var cut = RenderComponent < Components . Pagination . Pagination > ( parameters=>
24+ {
25+ parameters . Add ( p => p . Id , "testId" ) ;
26+ parameters . Add ( p => p . ItemCount , 15 ) ;
27+ parameters . Add ( p => p . SelectedPage , 1 ) ;
28+ parameters . Add ( p => p . HideItemCount , true ) ;
29+ }
2830 ) ;
29-
3031 // Assert
31-
32- cut . MarkupMatches ( "<ix-pagination id=\" testId\" item-count=\" 15\" selected-page=\" 1\" show-item-count i-1-8n-items=\" Items\" i-1-8n-of=\" of\" i-1-8n-page=\" Page\" ></ix-pagination>" ) ;
32+ cut . MarkupMatches ( "<ix-pagination id=\" testId\" item-count=\" 15\" selected-page=\" 1\" hide-item-count=\" \" i-1-8n-items=\" Items\" i-1-8n-of=\" of\" i-1-8n-page=\" Page\" ></ix-pagination>" ) ;
3333 }
3434
3535 [ Fact ]
@@ -66,4 +66,4 @@ public async Task PageSelectedEventWorks()
6666 Assert . Equal ( 2 , selectedPage ) ;
6767 }
6868 }
69- }
69+ }
Original file line number Diff line number Diff line change @@ -26,4 +26,4 @@ i-1-8n-of="@I18nOf"
2626i-1-8n-page =" @I18nPage"
2727item-count =" @ItemCount"
2828selected-page =" @SelectedPage"
29- show -item-count =" @ShowItemCount " ></ix-pagination >
29+ hide -item-count =" @HideItemCount " ></ix-pagination >
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public partial class Pagination
3636 [ Parameter ]
3737 public int SelectedPage { get ; set ; } = 0 ;
3838 [ Parameter ]
39- public bool ShowItemCount { get ; set ; } = true ;
39+ public bool HideItemCount { get ; set ; } = false ;
4040 [ Parameter ]
4141 public EventCallback < int > ItemCountChangedEvent { get ; set ; }
4242 [ Parameter ]
You can’t perform that action at this time.
0 commit comments