1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-28 13:15:12 +01:00
bitwarden-server/test/Api.Test/AdminConsole/Controllers
Rui Tomé 93e49ffe74
[AC-607] Extract IOrganizationService.DeleteUserAsync into IRemoveOrganizationUserCommand (#4803)
* Add HasConfirmedOwnersExceptQuery class, interface and unit tests

* Register IHasConfirmedOwnersExceptQuery for dependency injection

* Replace OrganizationService.HasConfirmedOwnersExceptAsync with HasConfirmedOwnersExceptQuery

* Refactor DeleteManagedOrganizationUserAccountCommand to use IHasConfirmedOwnersExceptQuery

* Fix unit tests

* Extract IOrganizationService.RemoveUserAsync into IRemoveOrganizationUserCommand; Update unit tests

* Extract IOrganizationService.RemoveUsersAsync into IRemoveOrganizationUserCommand; Update unit tests

* Refactor RemoveUserAsync(Guid organizationId, Guid userId) to use ValidateDeleteUser

* Refactor RemoveOrganizationUserCommandTests to use more descriptive method names

* Refactor controller actions to accept Guid directly instead of parsing strings

* Add unit tests for removing OrganizationUser by UserId

* Refactor remove OrganizationUser by UserId method

* Add summary to IHasConfirmedOwnersExceptQuery
2024-10-16 10:33:00 +01:00
..
GroupsControllerPutTests.cs Fix Most Test Warnings (#4612) 2024-08-15 17:14:22 -04:00
GroupsControllerTests.cs [PM-10291] Remove Flexible Collections v1 flag from API (#4578) 2024-08-08 12:26:07 -05:00
OrganizationAuthRequestsControllerTests.cs Allow for bulk processing new login device requests (#4064) 2024-05-27 11:56:52 +10:00
OrganizationConnectionsControllerTests.cs [AC-1200] Admin Console code ownership - move OrganizationFeatures (#3369) 2023-10-26 16:47:44 -05:00
OrganizationDomainControllerTests.cs [PM-12358] New Verified Organization Domain SSO Detail endpoint (#4838) 2024-10-07 14:39:57 -05:00
OrganizationsControllerTests.cs [AC-607] Extract IOrganizationService.DeleteUserAsync into IRemoveOrganizationUserCommand (#4803) 2024-10-16 10:33:00 +01:00
OrganizationUserControllerPutTests.cs chore: remove fc v1 feature flag, remove obsolete feature service calls from tests, refs PM-10295 (#4618) 2024-08-13 11:20:05 -05:00
OrganizationUsersControllerTests.cs [PM-10321/PM-10322] Add Endpoints for Deleting Single and Multiple Organization-Managed Users (#4727) 2024-10-01 15:45:23 +01:00