File tree Expand file tree Collapse file tree
OnTopic.AspNetCore.Mvc.Tests
OnTopic.AspNetCore.Mvc/Components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ public async Task Menu_Invoke_ReturnsNavigationViewModel() {
114114 var model = concreteResult ? . ViewData . Model as NavigationViewModel < NavigationTopicViewModel > ;
115115
116116 Assert . IsNotNull ( model ) ;
117- Assert . AreEqual < string ? > ( _topic . GetUniqueKey ( ) , model ? . CurrentWebPath ) ;
117+ Assert . AreEqual < string ? > ( _topic . GetWebPath ( ) , model ? . CurrentWebPath ) ;
118118 Assert . AreEqual < string ? > ( "/Web/" , model ? . NavigationRoot ? . WebPath ) ;
119119 Assert . AreEqual < int ? > ( 3 , model ? . NavigationRoot ? . Children . Count ) ;
120120 Assert . IsTrue ( model ? . NavigationRoot ? . IsSelected ( _topic . GetWebPath ( ) ) ?? false ) ;
@@ -139,7 +139,7 @@ public async Task PageLevelNavigation_Invoke_ReturnsNavigationViewModel() {
139139 var model = concreteResult ? . ViewData . Model as NavigationViewModel < NavigationTopicViewModel > ;
140140
141141 Assert . IsNotNull ( model ) ;
142- Assert . AreEqual < string ? > ( _topic . GetUniqueKey ( ) , model ? . CurrentWebPath ) ;
142+ Assert . AreEqual < string ? > ( _topic . GetWebPath ( ) , model ? . CurrentWebPath ) ;
143143 Assert . AreEqual < string ? > ( "/Web/Web_3/" , model ? . NavigationRoot ? . WebPath ) ;
144144 Assert . AreEqual < int ? > ( 2 , model ? . NavigationRoot ? . Children . Count ) ;
145145 Assert . IsTrue ( model ? . NavigationRoot ? . IsSelected ( _topic . GetWebPath ( ) ) ?? false ) ;
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ public async Task<IViewComponentResult> InvokeAsync() {
131131 \-----------------------------------------------------------------------------------------------------------------------*/
132132 var navigationViewModel = new NavigationViewModel < T > ( ) {
133133 NavigationRoot = await MapNavigationTopicViewModels ( navigationRootTopic ) . ConfigureAwait ( true ) ,
134- CurrentWebPath = CurrentTopic ? . GetUniqueKey ( ) ?? HttpContext . Request . Path
134+ CurrentWebPath = CurrentTopic ? . GetWebPath ( ) ?? HttpContext . Request . Path
135135 } ;
136136
137137 /*------------------------------------------------------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ public async Task<IViewComponentResult> InvokeAsync() {
128128 \-----------------------------------------------------------------------------------------------------------------------*/
129129 var navigationViewModel = new NavigationViewModel < T > ( ) {
130130 NavigationRoot = await MapNavigationTopicViewModels ( navigationRootTopic ) . ConfigureAwait ( true ) ,
131- CurrentWebPath = CurrentTopic ? . GetUniqueKey ( ) ?? HttpContext . Request . Path
131+ CurrentWebPath = CurrentTopic ? . GetWebPath ( ) ?? HttpContext . Request . Path
132132 } ;
133133
134134 /*------------------------------------------------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments