@@ -30,7 +30,7 @@ public void SetUp()
3030 context . SetupProperty ( c => c . InstanceServices , serviceProvider ) ;
3131 ExecutionContext = context . Object ;
3232
33- Subject = new Query ( serviceProvider . GetService < IQueryFunction > ( ) , serviceProvider . GetService < ILoggerFactory > ( ) ) ;
33+ Subject = new Query ( serviceProvider . GetService < IQueryFunction > ( ) ! , serviceProvider . GetService < ILoggerFactory > ( ) ! ) ;
3434 }
3535
3636 [ Test ]
@@ -41,7 +41,7 @@ public async Task should_work()
4141 var result = await Subject . Run ( req , ExecutionContext , "BarQuery" ) ;
4242 var value = await result . AsAsync < Bar > ( ) ;
4343
44- value . Id . Should ( ) . Be ( 1 ) ;
44+ value ! . Id . Should ( ) . Be ( 1 ) ;
4545 value . Value . Should ( ) . NotBeEmpty ( ) ;
4646 }
4747
@@ -55,8 +55,8 @@ public async Task should_handle_errors()
5555 await result . ShouldBeErrorAsync ( "The query type 'FailQuery' could not be found" ) ;
5656 }
5757
58- FunctionContext ExecutionContext ;
59- Query Subject ;
58+ FunctionContext ExecutionContext = null ! ;
59+ Query Subject = null ! ;
6060 }
6161
6262 public class when_using_the_real_function_via_Get
@@ -73,7 +73,7 @@ public void SetUp()
7373 context . SetupProperty ( c => c . InstanceServices , serviceProvider ) ;
7474 ExecutionContext = context . Object ;
7575
76- Subject = new Query ( serviceProvider . GetService < IQueryFunction > ( ) , serviceProvider . GetService < ILoggerFactory > ( ) ) ;
76+ Subject = new Query ( serviceProvider . GetService < IQueryFunction > ( ) ! , serviceProvider . GetService < ILoggerFactory > ( ) ! ) ;
7777 }
7878
7979 [ Test ]
@@ -84,7 +84,7 @@ public async Task should_work()
8484 var result = await Subject . Run ( req , ExecutionContext , "BarQuery" ) ;
8585 var value = await result . AsAsync < Bar > ( ) ;
8686
87- value . Id . Should ( ) . Be ( 1 ) ;
87+ value ! . Id . Should ( ) . Be ( 1 ) ;
8888 value . Value . Should ( ) . NotBeEmpty ( ) ;
8989 }
9090
@@ -98,11 +98,11 @@ public async Task should_handle_errors()
9898 await result . ShouldBeErrorAsync ( "The query type 'FailQuery' could not be found" ) ;
9999 }
100100
101- FunctionContext ExecutionContext ;
102- Query Subject ;
101+ FunctionContext ExecutionContext = null ! ;
102+ Query Subject = null ! ;
103103 }
104104
105- static HttpRequestData GetHttpRequestData ( FunctionContext executionContext , string method , string content = null , string url = null )
105+ static HttpRequestData GetHttpRequestData ( FunctionContext executionContext , string method , string ? content = null , string ? url = null )
106106 {
107107 var request = new Mock < HttpRequestData > ( executionContext ) ;
108108 request . Setup ( r => r . Method ) . Returns ( method ) ;
0 commit comments