Skip to content

feat: add asynchronous DeleteAsync method to IRepositoryBase and impl…#83

Merged
codedesignplus merged 1 commit intodevfrom
feature/add-delete-without-tenant
Feb 2, 2025
Merged

feat: add asynchronous DeleteAsync method to IRepositoryBase and impl…#83
codedesignplus merged 1 commit intodevfrom
feature/add-delete-without-tenant

Conversation

@codedesignplus
Copy link
Collaborator

This pull request introduces a new asynchronous delete method for entities in the repository and includes corresponding tests. The most important changes are as follows:

New Method Addition:

  • Added DeleteAsync<TEntity>(Guid id, CancellationToken cancellationToken) method to the IRepositoryBase interface to allow deletion of an entity by its identifier asynchronously.
  • Implemented the DeleteAsync<TEntity>(Guid id, CancellationToken cancellationToken) method in the RepositoryBase class to support the new interface method.

Testing:

  • Added a new test DeleteAsync_WhenIdIsValidWithoutTenant_ReturnTrue in RepositoryBaseTest.cs to verify that the new delete method works correctly when an entity is deleted by its identifier without a tenant.

…ement in RepositoryBase; include unit test for validation
@codedesignplus codedesignplus merged commit 73a5099 into dev Feb 2, 2025
2 checks passed
@codedesignplus codedesignplus deleted the feature/add-delete-without-tenant branch February 5, 2025 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant