File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
src/ECER.Tests/Integration/RegistryApi Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change 11using Alba ;
22using Bogus ;
33using ECER . Clients . RegistryPortal . Server . ICRA ;
4- using ECER . Clients . RegistryPortal . Server ;
54using Shouldly ;
65using System . Net ;
76using System . Net . Http . Headers ;
@@ -131,16 +130,7 @@ public async Task SaveDraftIcraEligibility_WithInternationalCertificationAndFile
131130
132131 var uploadedFileResponse = ( await fileResponse . ReadAsJsonAsync < ECER . Clients . RegistryPortal . Server . Files . FileResponse > ( ) ) . ShouldNotBeNull ( ) ;
133132
134- var countriesResponse = await Host . Scenario ( _ =>
135- {
136- _ . WithExistingUser ( this . Fixture . AuthenticatedBcscUserIdentity , this . Fixture . AuthenticatedBcscUser ) ;
137- _ . Get . Url ( "/api/countrylist" ) ;
138- _ . StatusCodeShouldBeOk ( ) ;
139- } ) ;
140-
141- var countries = await countriesResponse . ReadAsJsonAsync < Country [ ] > ( ) ;
142- countries . ShouldNotBeNull ( ) ;
143- var countryId = countries . FirstOrDefault ( c => c . IsICRA ) ? . CountryId ?? countries . First ( ) . CountryId ;
133+ var countryId = this . Fixture . Country . ecer_CountryId ! . Value . ToString ( ) ;
144134
145135 var eligibility = new ICRAEligibility
146136 {
You can’t perform that action at this time.
0 commit comments