This repository was archived by the owner on Dec 14, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
test/Microsoft.AspNet.Mvc.Core.Test Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ public void ActionDescriptorsCollection_SettingNullValue_Throws(RouteDirection d
134134 {
135135 // Arrange
136136 var httpContext = new Mock < HttpContext > ( ) ;
137- httpContext . Setup ( o => o . ApplicationServices
137+ httpContext . Setup ( o => o . RequestServices
138138 . GetService ( typeof ( IActionDescriptorsCollectionProvider ) ) )
139139 . Returns ( new Mock < IActionDescriptorsCollectionProvider > ( ) . Object ) ;
140140 // Act & Assert
@@ -159,12 +159,12 @@ private static HttpContext GetHttpContext(ActionDescriptor actionDescriptor)
159159 . Callback < ActionDescriptorProviderContext > ( c => c . Results . Add ( actionDescriptor ) ) ;
160160
161161 var context = new Mock < HttpContext > ( ) ;
162- context . Setup ( o => o . ApplicationServices
162+ context . Setup ( o => o . RequestServices
163163 . GetService ( typeof ( INestedProviderManager < ActionDescriptorProviderContext > ) ) )
164164 . Returns ( actionProvider . Object ) ;
165- context . Setup ( o => o . ApplicationServices
165+ context . Setup ( o => o . RequestServices
166166 . GetService ( typeof ( IActionDescriptorsCollectionProvider ) ) )
167- . Returns ( new DefaultActionDescriptorsCollectionProvider ( context . Object . ApplicationServices ) ) ;
167+ . Returns ( new DefaultActionDescriptorsCollectionProvider ( context . Object . RequestServices ) ) ;
168168 return context . Object ;
169169 }
170170
You can’t perform that action at this time.
0 commit comments