File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
application/account-management Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public void MapEndpoints(IEndpointRouteBuilder routes)
2222 => await mediator . Send ( command with { Id = id } )
2323 ) ;
2424
25- group . MapDelete ( "/{id}" , async Task < ApiResult > ( TenantId id , IMediator mediator )
25+ routes . MapDelete ( "/internal-api/account-management/tenants /{id}" , async Task < ApiResult > ( TenantId id , IMediator mediator )
2626 => await mediator . Send ( new DeleteTenantCommand ( id ) )
2727 ) ;
2828 }
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public async Task DeleteTenant_WhenTenantDoesNotExists_ShouldReturnNotFound()
2020 var unknownTenantId = Faker . Subdomain ( ) ;
2121
2222 // Act
23- var response = await AuthenticatedHttpClient . DeleteAsync ( $ "/api/account-management/tenants/{ unknownTenantId } ") ;
23+ var response = await AuthenticatedHttpClient . DeleteAsync ( $ "/internal- api/account-management/tenants/{ unknownTenantId } ") ;
2424
2525 //Assert
2626 await response . ShouldHaveErrorStatusCode ( HttpStatusCode . NotFound , $ "Tenant with id '{ unknownTenantId } ' not found.") ;
@@ -50,7 +50,7 @@ public async Task DeleteTenant_WhenTenantHasUsers_ShouldReturnBadRequest()
5050 ) ;
5151
5252 // Act
53- var response = await AuthenticatedHttpClient . DeleteAsync ( $ "/api/account-management/tenants/{ existingTenantId } ") ;
53+ var response = await AuthenticatedHttpClient . DeleteAsync ( $ "/internal- api/account-management/tenants/{ existingTenantId } ") ;
5454 TelemetryEventsCollectorSpy . Reset ( ) ;
5555
5656 // Assert
@@ -70,7 +70,7 @@ public async Task DeleteTenant_WhenTenantHasNoUsers_ShouldDeleteTenant()
7070 var existingTenantId = DatabaseSeeder . Tenant1 . Id ;
7171
7272 // Act
73- var response = await AuthenticatedHttpClient . DeleteAsync ( $ "/api/account-management/tenants/{ existingTenantId } ") ;
73+ var response = await AuthenticatedHttpClient . DeleteAsync ( $ "/internal- api/account-management/tenants/{ existingTenantId } ") ;
7474
7575 // Assert
7676 response . ShouldHaveEmptyHeaderAndLocationOnSuccess ( ) ;
You can’t perform that action at this time.
0 commit comments