@@ -39,8 +39,8 @@ private static void UseNotImplemented(IApplicationBuilder app)
3939 [ Fact ]
4040 public void NullArguments_ArgumentNullException ( )
4141 {
42- var builder = new ApplicationBuilder ( serviceProvider : null ) ;
43- var noMiddleware = new ApplicationBuilder ( serviceProvider : null ) . Build ( ) ;
42+ var builder = new ApplicationBuilder ( serviceProvider : null ! ) ;
43+ var noMiddleware = new ApplicationBuilder ( serviceProvider : null ! ) . Build ( ) ;
4444 var noOptions = new MapOptions ( ) ;
4545 Assert . Throws < ArgumentNullException > ( ( ) => builder . Map ( "/foo" , configuration : null ! ) ) ;
4646 Assert . Throws < ArgumentNullException > ( ( ) => new MapMiddleware ( noMiddleware , null ! ) ) ;
@@ -57,7 +57,7 @@ public void NullArguments_ArgumentNullException()
5757 public async Task PathMatchFunc_BranchTaken ( string matchPath , string basePath , string requestPath )
5858 {
5959 HttpContext context = CreateRequest ( basePath , requestPath ) ;
60- var builder = new ApplicationBuilder ( serviceProvider : null ) ;
60+ var builder = new ApplicationBuilder ( serviceProvider : null ! ) ;
6161 builder . Map ( matchPath , UseSuccess ) ;
6262 var app = builder . Build ( ) ;
6363 await app . Invoke ( context ) ;
@@ -85,7 +85,7 @@ public async Task PathMatchFunc_BranchTaken(string matchPath, string basePath, s
8585 public async Task PathMatchAction_BranchTaken ( string matchPath , string basePath , string requestPath )
8686 {
8787 HttpContext context = CreateRequest ( basePath , requestPath ) ;
88- var builder = new ApplicationBuilder ( serviceProvider : null ) ;
88+ var builder = new ApplicationBuilder ( serviceProvider : null ! ) ;
8989 builder . Map ( matchPath , subBuilder => subBuilder . Run ( Success ) ) ;
9090 var app = builder . Build ( ) ;
9191 await app . Invoke ( context ) ;
@@ -113,7 +113,7 @@ public async Task PathMatchAction_BranchTaken(string matchPath, string basePath,
113113 public async Task PathMatchAction_BranchTaken_WithPreserveMatchedPathSegment ( string matchPath , string basePath , string requestPath )
114114 {
115115 HttpContext context = CreateRequest ( basePath , requestPath ) ;
116- var builder = new ApplicationBuilder ( serviceProvider : null ) ;
116+ var builder = new ApplicationBuilder ( serviceProvider : null ! ) ;
117117 builder . Map ( matchPath , true , subBuilder => subBuilder . Run ( Success ) ) ;
118118 var app = builder . Build ( ) ;
119119 await app . Invoke ( context ) ;
@@ -129,7 +129,7 @@ public async Task PathMatchAction_BranchTaken_WithPreserveMatchedPathSegment(str
129129 [ InlineData ( "/foo/cho/" ) ]
130130 public void MatchPathWithTrailingSlashThrowsException ( string matchPath )
131131 {
132- Assert . Throws < ArgumentException > ( ( ) => new ApplicationBuilder ( serviceProvider : null ) . Map ( matchPath , map => { } ) . Build ( ) ) ;
132+ Assert . Throws < ArgumentException > ( ( ) => new ApplicationBuilder ( serviceProvider : null ! ) . Map ( matchPath , map => { } ) . Build ( ) ) ;
133133 }
134134
135135 [ Theory ]
@@ -143,7 +143,7 @@ public void MatchPathWithTrailingSlashThrowsException(string matchPath)
143143 public async Task PathMismatchFunc_PassedThrough ( string matchPath , string basePath , string requestPath )
144144 {
145145 HttpContext context = CreateRequest ( basePath , requestPath ) ;
146- var builder = new ApplicationBuilder ( serviceProvider : null ) ;
146+ var builder = new ApplicationBuilder ( serviceProvider : null ! ) ;
147147 builder . Map ( matchPath , UseNotImplemented ) ;
148148 builder . Run ( Success ) ;
149149 var app = builder . Build ( ) ;
@@ -165,7 +165,7 @@ public async Task PathMismatchFunc_PassedThrough(string matchPath, string basePa
165165 public async Task PathMismatchAction_PassedThrough ( string matchPath , string basePath , string requestPath )
166166 {
167167 HttpContext context = CreateRequest ( basePath , requestPath ) ;
168- var builder = new ApplicationBuilder ( serviceProvider : null ) ;
168+ var builder = new ApplicationBuilder ( serviceProvider : null ! ) ;
169169 builder . Map ( matchPath , UseNotImplemented ) ;
170170 builder . Run ( Success ) ;
171171 var app = builder . Build ( ) ;
@@ -179,7 +179,7 @@ public async Task PathMismatchAction_PassedThrough(string matchPath, string base
179179 [ Fact ]
180180 public async Task ChainedRoutes_Success ( )
181181 {
182- var builder = new ApplicationBuilder ( serviceProvider : null ) ;
182+ var builder = new ApplicationBuilder ( serviceProvider : null ! ) ;
183183 builder . Map ( "/route1" , map =>
184184 {
185185 map . Map ( "/subroute1" , UseSuccess ) ;
0 commit comments