11namespace MyTested . AspNetCore . Mvc
22{
33 using System ;
4- using Builders ;
54 using Builders . Contracts . Application ;
65 using Builders . Contracts . Controllers ;
76 using Builders . Contracts . Routes ;
8- using Builders . Routes ;
97 using Internal . Application ;
10- using Internal . TestContexts ;
118
129 /// <summary>
1310 /// Starting point of the ASP.NET Core MVC testing framework. Provides methods to specify a test case.
1411 /// </summary>
1512 public static class MyMvc
1613 {
17- internal const string ReleaseDate = "2016-06-01" ;
18-
1914 static MyMvc ( )
2015 {
2116 TestApplication . TryInitialize ( ) ;
@@ -27,7 +22,7 @@ static MyMvc()
2722 /// <returns>Builder of <see cref="IApplicationConfigurationBuilder"/> type.</returns>
2823 public static IApplicationConfigurationBuilder IsUsingDefaultConfiguration ( )
2924 {
30- return new ApplicationConfigurationBuilder ( null ) ;
25+ return new MyApplication ( ) ;
3126 }
3227
3328 /// <summary>
@@ -36,9 +31,9 @@ public static IApplicationConfigurationBuilder IsUsingDefaultConfiguration()
3631 /// <typeparam name="TStartup">Type of startup class.</typeparam>
3732 /// <returns>Builder of <see cref="IApplicationConfigurationBuilder"/> type.</returns>
3833 public static IApplicationConfigurationBuilder StartsFrom < TStartup > ( )
39- where TStartup : class , new ( )
34+ where TStartup : class
4035 {
41- return new ApplicationConfigurationBuilder ( typeof ( TStartup ) ) ;
36+ return new MyApplication ( typeof ( TStartup ) ) ;
4237 }
4338
4439 /// <summary>
@@ -47,11 +42,7 @@ public static IApplicationConfigurationBuilder StartsFrom<TStartup>()
4742 /// <returns>Test builder of <see cref="IRouteTestBuilder"/> type.</returns>
4843 public static IRouteTestBuilder Routes ( )
4944 {
50- return new RouteTestBuilder ( new RouteTestContext
51- {
52- Router = TestApplication . Router ,
53- Services = TestApplication . RouteServices
54- } ) ;
45+ return new MyRoutes ( ) ;
5546 }
5647
5748 /// <summary>
0 commit comments