@@ -25,7 +25,7 @@ public class OpenApiHttpTriggerContextTests
25
25
public async Task Given_Type_When_Initiated_Then_It_Should_Return_ApplicationAssemblyWithGivenType ( Type type )
26
26
{
27
27
var location = new FileInfo ( Assembly . GetExecutingAssembly ( ) . Location ) . Directory . FullName ;
28
- var context = new OpenApiHttpTriggerContext ( ) ;
28
+ var context = new OpenApiHttpTriggerContext ( null ) ;
29
29
30
30
var assembly = ( await context . SetApplicationAssemblyAsync ( location , false ) )
31
31
. ApplicationAssembly ;
@@ -39,7 +39,7 @@ public async Task Given_Type_When_Initiated_Then_It_Should_Return_ApplicationAss
39
39
public async Task Given_Type_With_Referenced_Project_When_Initiated_Then_It_Should_Return_ApplicationAssemblyOfRootAssembly ( )
40
40
{
41
41
var location = new FileInfo ( Assembly . GetExecutingAssembly ( ) . Location ) . Directory . FullName ;
42
- var context = new OpenApiHttpTriggerContext ( ) ;
42
+ var context = new OpenApiHttpTriggerContext ( null ) ;
43
43
44
44
var assembly = ( await context . SetApplicationAssemblyAsync ( location , false ) )
45
45
. ApplicationAssembly ;
@@ -55,7 +55,7 @@ public async Task Given_Type_With_Referenced_Project_When_Initiated_Then_It_Shou
55
55
public async Task Given_Type_When_Initiated_Then_It_Should_NotReturn_ApplicationAssemblyWithGivenType ( Type type )
56
56
{
57
57
var location = new FileInfo ( Assembly . GetExecutingAssembly ( ) . Location ) . Directory . FullName ;
58
- var context = new OpenApiHttpTriggerContext ( ) ;
58
+ var context = new OpenApiHttpTriggerContext ( null ) ;
59
59
60
60
var assembly = ( await context . SetApplicationAssemblyAsync ( location , false ) )
61
61
. ApplicationAssembly ;
@@ -69,7 +69,7 @@ public async Task Given_Type_When_Initiated_Then_It_Should_NotReturn_Application
69
69
public async Task Given_Type_When_Initiated_Then_It_Should_Return_PackageAssembly ( )
70
70
{
71
71
var location = new FileInfo ( Assembly . GetExecutingAssembly ( ) . Location ) . Directory . FullName ;
72
- var context = new OpenApiHttpTriggerContext ( ) ;
72
+ var context = new OpenApiHttpTriggerContext ( null ) ;
73
73
74
74
var assembly = ( await context . SetApplicationAssemblyAsync ( location , false ) )
75
75
. PackageAssembly ;
@@ -81,7 +81,7 @@ public async Task Given_Type_When_Initiated_Then_It_Should_Return_PackageAssembl
81
81
public async Task Given_Type_When_Initiated_Then_It_Should_Return_OpenApiConfigurationOptions ( )
82
82
{
83
83
var location = new FileInfo ( Assembly . GetExecutingAssembly ( ) . Location ) . Directory . FullName ;
84
- var context = new OpenApiHttpTriggerContext ( ) ;
84
+ var context = new OpenApiHttpTriggerContext ( null ) ;
85
85
86
86
var options = ( await context . SetApplicationAssemblyAsync ( location , false ) )
87
87
. OpenApiConfigurationOptions ;
@@ -94,7 +94,7 @@ public async Task Given_Type_When_Initiated_Then_It_Should_Return_OpenApiConfigu
94
94
public async Task Given_Type_When_Initiated_Then_It_Should_Return_OpenApiCustomUIOptions ( )
95
95
{
96
96
var location = new FileInfo ( Assembly . GetExecutingAssembly ( ) . Location ) . Directory . FullName ;
97
- var context = new OpenApiHttpTriggerContext ( ) ;
97
+ var context = new OpenApiHttpTriggerContext ( null ) ;
98
98
99
99
var options = ( await context . SetApplicationAssemblyAsync ( location , false ) )
100
100
. OpenApiCustomUIOptions ;
@@ -107,7 +107,7 @@ public async Task Given_Type_When_Initiated_Then_It_Should_Return_OpenApiCustomU
107
107
public async Task Given_Type_When_Initiated_Then_It_Should_Return_HttpSettings ( )
108
108
{
109
109
var location = new FileInfo ( Assembly . GetExecutingAssembly ( ) . Location ) . Directory . FullName ;
110
- var context = new OpenApiHttpTriggerContext ( ) ;
110
+ var context = new OpenApiHttpTriggerContext ( null ) ;
111
111
112
112
var settings = ( await context . SetApplicationAssemblyAsync ( location , false ) )
113
113
. HttpSettings ;
@@ -121,7 +121,7 @@ public async Task Given_Authorization_When_AuthorizeAsync_Invoked_Then_It_Should
121
121
{
122
122
var location = new FileInfo ( Assembly . GetExecutingAssembly ( ) . Location ) . Directory . FullName ;
123
123
var req = new Mock < IHttpRequestDataObject > ( ) ;
124
- var context = new OpenApiHttpTriggerContext ( ) ;
124
+ var context = new OpenApiHttpTriggerContext ( null ) ;
125
125
126
126
var result = await context . SetApplicationAssemblyAsync ( location , false )
127
127
. AuthorizeAsync ( req . Object ) ;
@@ -137,7 +137,7 @@ public async Task Given_Authorization_When_AuthorizeAsync_Invoked_Then_It_Should
137
137
public async Task Given_Type_When_GetOpenApiSpecVersion_Invoked_Then_It_Should_Return_Result ( string version , OpenApiSpecVersion expected )
138
138
{
139
139
var location = new FileInfo ( Assembly . GetExecutingAssembly ( ) . Location ) . Directory . FullName ;
140
- var context = new OpenApiHttpTriggerContext ( ) ;
140
+ var context = new OpenApiHttpTriggerContext ( null ) ;
141
141
142
142
var result = ( await context . SetApplicationAssemblyAsync ( location , false ) )
143
143
. GetOpenApiSpecVersion ( version ) ;
@@ -151,7 +151,7 @@ public async Task Given_Type_When_GetOpenApiSpecVersion_Invoked_Then_It_Should_R
151
151
public async Task Given_Type_When_GetOpenApiSpecVersion_Invoked_Then_It_Should_Return_Result ( string format , OpenApiFormat expected )
152
152
{
153
153
var location = new FileInfo ( Assembly . GetExecutingAssembly ( ) . Location ) . Directory . FullName ;
154
- var context = new OpenApiHttpTriggerContext ( ) ;
154
+ var context = new OpenApiHttpTriggerContext ( null ) ;
155
155
156
156
var result = ( await context . SetApplicationAssemblyAsync ( location , false ) )
157
157
. GetOpenApiFormat ( format ) ;
0 commit comments