@@ -22,28 +22,28 @@ public class ApiTest
2222 protected const string SERVER_HEADER_VALUE_COMMA = "SMS,API" ;
2323 protected const string X_REQUEST_ID_HEADER_VALUE = "1608758729810312842" ;
2424
25- protected Configuration ? configuration ;
25+ protected Configuration ? Configuration ;
2626
27- protected WireMockServer ? wireMockServer ;
27+ protected WireMockServer ? WireMockServer ;
2828
2929 [ TestInitialize ]
3030 public void StartMockServer ( )
3131 {
3232 CultureInfo . DefaultThreadCurrentCulture = CultureInfo . InvariantCulture ;
3333
34- wireMockServer = WireMockServer . Start ( ) ;
34+ WireMockServer = WireMockServer . Start ( ) ;
3535
36- configuration = new Configuration
36+ Configuration = new Configuration
3737 {
3838 ApiKey = API_KEY ,
39- BasePath = "http://localhost:" + wireMockServer . Ports [ 0 ]
39+ BasePath = "http://localhost:" + WireMockServer . Ports [ 0 ]
4040 } ;
4141 }
4242
4343 [ TestCleanup ]
4444 public void TearDown ( )
4545 {
46- wireMockServer ! . Stop ( ) ;
46+ WireMockServer ! . Stop ( ) ;
4747 }
4848
4949 protected void SetUpGetRequest ( string url , int statusCode , string expectedResponse ,
@@ -57,7 +57,7 @@ protected void SetUpGetRequest(string url, int statusCode, string expectedRespon
5757 if ( givenParameters != null && givenParameters . Count > 0 )
5858 request = request . WithParam ( EqualToParams ( givenParameters ) ) ;
5959
60- wireMockServer ! . Given ( request )
60+ WireMockServer ! . Given ( request )
6161 . RespondWith ( Response . Create ( )
6262 . WithStatusCode ( statusCode )
6363 . WithHeader ( "Content-Type" , CONTENT_TYPE_HEADER_VALUE )
@@ -77,7 +77,7 @@ protected void SetUpGetRequestBinary(string url, int statusCode, string expected
7777 if ( givenParameters != null && givenParameters . Count > 0 )
7878 request = request . WithParam ( EqualToParams ( givenParameters ) ) ;
7979
80- wireMockServer ! . Given ( request )
80+ WireMockServer ! . Given ( request )
8181 . RespondWith ( Response . Create ( )
8282 . WithStatusCode ( statusCode )
8383 . WithHeader ( "Content-Type" , CONTENT_TYPE_HEADER_VALUE )
@@ -109,7 +109,7 @@ protected void SetUpPostRequest(string url, int statusCode, string? givenRequest
109109 response = response . WithHeader ( "Content-Type" , CONTENT_TYPE_HEADER_VALUE )
110110 . WithBody ( expectedResponse ) ;
111111
112- wireMockServer ! . Given ( request ) . RespondWith ( response ) ;
112+ WireMockServer ! . Given ( request ) . RespondWith ( response ) ;
113113 }
114114
115115 protected void SetUpPatchRequest ( string url , int statusCode , string givenRequest , string ? expectedResponse = null ,
@@ -134,7 +134,7 @@ protected void SetUpPatchRequest(string url, int statusCode, string givenRequest
134134 response = response . WithHeader ( "Content-Type" , CONTENT_TYPE_HEADER_VALUE )
135135 . WithBody ( expectedResponse ) ;
136136
137- wireMockServer ! . Given ( request ) . RespondWith ( response ) ;
137+ WireMockServer ! . Given ( request ) . RespondWith ( response ) ;
138138 }
139139
140140 protected void SetUpPutRequest ( string url , int statusCode , string givenRequest , string ? expectedResponse = null ,
@@ -159,7 +159,7 @@ protected void SetUpPutRequest(string url, int statusCode, string givenRequest,
159159 response = response . WithHeader ( "Content-Type" , CONTENT_TYPE_HEADER_VALUE )
160160 . WithBody ( expectedResponse ) ;
161161
162- wireMockServer ! . Given ( request ) . RespondWith ( response ) ;
162+ WireMockServer ! . Given ( request ) . RespondWith ( response ) ;
163163 }
164164
165165 protected void SetUpDeleteRequest ( string url , int statusCode , string ? givenRequest = null ,
@@ -184,7 +184,7 @@ protected void SetUpDeleteRequest(string url, int statusCode, string? givenReque
184184 response = response . WithHeader ( "Content-Type" , CONTENT_TYPE_HEADER_VALUE )
185185 . WithBody ( expectedResponse ) ;
186186
187- wireMockServer ! . Given ( request ) . RespondWith ( response ) ;
187+ WireMockServer ! . Given ( request ) . RespondWith ( response ) ;
188188 }
189189
190190 protected void SetUpMultipartFormRequest ( string url , Multimap < string , string > givenParts , string expectedResponse ,
@@ -212,7 +212,7 @@ protected void SetUpMultipartFormRequest(string url, Multimap<string, string> gi
212212 . WithHeader ( "X-Request-Id" , X_REQUEST_ID_HEADER_VALUE )
213213 . WithBody ( expectedResponse ) ;
214214
215- wireMockServer ! . Given ( req ) . RespondWith ( resp ) ;
215+ WireMockServer ! . Given ( req ) . RespondWith ( resp ) ;
216216 }
217217
218218 private Func < IDictionary < string , WireMockList < string > > , bool > [ ] EqualToParams ( Dictionary < string , string > parameters )
0 commit comments