@@ -77,7 +77,7 @@ public void Can_GetAsync_to_retrieve_existing_file()
7777 var restClient = CreateAsyncRestClient ( ) ;
7878
7979 FilesResponse response = null ;
80- restClient . GetAsync < FilesResponse > ( WebServiceHostUrl + "files/README.txt" ,
80+ restClient . GetAsync < FilesResponse > ( "files/README.txt" ,
8181 r => response = r , FailOnAsyncError ) ;
8282
8383 Thread . Sleep ( 1000 ) ;
@@ -91,7 +91,7 @@ public void Can_GetAsync_to_retrieve_existing_folder_listing()
9191 var restClient = CreateAsyncRestClient ( ) ;
9292
9393 FilesResponse response = null ;
94- restClient . GetAsync < FilesResponse > ( WebServiceHostUrl + "files/" ,
94+ restClient . GetAsync < FilesResponse > ( "files/" ,
9595 r => response = r , FailOnAsyncError ) ;
9696
9797 Thread . Sleep ( 1000 ) ;
@@ -106,7 +106,7 @@ public void Can_PostAsync_to_path_without_uploaded_files_to_create_a_new_Directo
106106 var restClient = CreateAsyncRestClient ( ) ;
107107
108108 FilesResponse response = null ;
109- restClient . PostAsync < FilesResponse > ( WebServiceHostUrl + "files/SubFolder/NewFolder" ,
109+ restClient . PostAsync < FilesResponse > ( "files/SubFolder/NewFolder" ,
110110 new Files ( ) ,
111111 r => response = r , FailOnAsyncError ) ;
112112
@@ -134,7 +134,7 @@ public void Can_RestClient_POST_upload_file_to_save_new_file_and_create_new_Dire
134134 var restClient = ( IRestClient ) CreateAsyncRestClient ( ) ;
135135
136136 var fileToUpload = new FileInfo ( FilesRootDir + "TESTUPLOAD.txt" ) ;
137- restClient . PostFile < FilesResponse > ( WebServiceHostUrl + "files/UploadedFiles/" ,
137+ restClient . PostFile < FilesResponse > ( "files/UploadedFiles/" ,
138138 fileToUpload , MimeTypes . GetMimeType ( fileToUpload . Name ) ) ;
139139
140140 Assert . That ( Directory . Exists ( FilesRootDir + "UploadedFiles" ) ) ;
@@ -148,7 +148,7 @@ public void Can_PutAsync_to_replace_text_content_of_an_existing_file()
148148 var restClient = CreateAsyncRestClient ( ) ;
149149
150150 FilesResponse response = null ;
151- restClient . PutAsync < FilesResponse > ( WebServiceHostUrl + "files/README.txt" ,
151+ restClient . PutAsync < FilesResponse > ( "files/README.txt" ,
152152 new Files { TextContents = ReplacedFileContents } ,
153153 r => response = r , FailOnAsyncError ) ;
154154
@@ -164,7 +164,7 @@ public void Can_DeleteAsync_to_replace_text_content_of_an_existing_file()
164164 var restClient = CreateAsyncRestClient ( ) ;
165165
166166 FilesResponse response = null ;
167- restClient . DeleteAsync < FilesResponse > ( WebServiceHostUrl + "files/README.txt" ,
167+ restClient . DeleteAsync < FilesResponse > ( "files/README.txt" ,
168168 r => response = r , FailOnAsyncError ) ;
169169
170170 Thread . Sleep ( 1000 ) ;
@@ -184,7 +184,7 @@ public void GET_a_file_that_doesnt_exist_throws_a_404_FileNotFoundException()
184184 WebServiceException webEx = null ;
185185 FilesResponse response = null ;
186186
187- restClient . GetAsync < FilesResponse > ( WebServiceHostUrl + "files/UnknownFolder" ,
187+ restClient . GetAsync < FilesResponse > ( "files/UnknownFolder" ,
188188 r => response = r ,
189189 ( r , ex ) =>
190190 {
@@ -208,7 +208,7 @@ public void POST_to_an_existing_file_throws_a_500_NotSupportedException()
208208
209209 try
210210 {
211- var response = restClient . PostFile < FilesResponse > ( WebServiceHostUrl + "files/README.txt" ,
211+ var response = restClient . PostFile < FilesResponse > ( "files/README.txt" ,
212212 fileToUpload , MimeTypes . GetMimeType ( fileToUpload . Name ) ) ;
213213
214214 Assert . Fail ( "Should fail with NotSupportedException" ) ;
@@ -231,7 +231,7 @@ public void PUT_to_replace_a_non_existing_file_throws_404()
231231 WebServiceException webEx = null ;
232232 FilesResponse response = null ;
233233
234- restClient . PutAsync < FilesResponse > ( WebServiceHostUrl + "files/non-existing-file.txt" ,
234+ restClient . PutAsync < FilesResponse > ( "files/non-existing-file.txt" ,
235235 new Files { TextContents = ReplacedFileContents } ,
236236 r => response = r ,
237237 ( r , ex ) =>
@@ -255,7 +255,7 @@ public void DELETE_a_non_existing_file_throws_404()
255255 WebServiceException webEx = null ;
256256 FilesResponse response = null ;
257257
258- restClient . DeleteAsync < FilesResponse > ( WebServiceHostUrl + "files/non-existing-file.txt" ,
258+ restClient . DeleteAsync < FilesResponse > ( "files/non-existing-file.txt" ,
259259 r => response = r ,
260260 ( r , ex ) =>
261261 {
0 commit comments