File tree Expand file tree Collapse file tree
src/MyTested.AspNetCore.Mvc.Core Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 using Builders . Contracts . Application ;
66 using Builders . Contracts . Controllers ;
77 using Builders . Contracts . Routes ;
8- using Builders . Controllers ;
98 using Builders . Routes ;
109 using Internal . Application ;
1110 using Internal . TestContexts ;
@@ -63,7 +62,7 @@ public static IRouteTestBuilder Routes()
6362 public static IControllerBuilder < TController > Controller < TController > ( )
6463 where TController : class
6564 {
66- return Controller ( ( TController ) null ) ;
65+ return new MyController < TController > ( ) ;
6766 }
6867
6968 /// <summary>
@@ -75,7 +74,7 @@ public static IControllerBuilder<TController> Controller<TController>()
7574 public static IControllerBuilder < TController > Controller < TController > ( TController controller )
7675 where TController : class
7776 {
78- return Controller ( ( ) => controller ) ;
77+ return new MyController < TController > ( controller ) ;
7978 }
8079
8180 /// <summary>
@@ -87,7 +86,7 @@ public static IControllerBuilder<TController> Controller<TController>(TControlle
8786 public static IControllerBuilder < TController > Controller < TController > ( Func < TController > construction )
8887 where TController : class
8988 {
90- return new ControllerBuilder < TController > ( new ControllerTestContext { ControllerConstruction = construction } ) ;
89+ return new MyController < TController > ( construction ) ;
9190 }
9291 }
9392}
You can’t perform that action at this time.
0 commit comments