big refactoring. get rid of static properties and coupled architecture. prepare system for integration tests

This commit is contained in:
Oleksandr Bezdieniezhnykh
2025-11-17 13:14:05 +02:00
parent 22529c26ec
commit e7ea5a8ded
38 changed files with 808 additions and 157 deletions
@@ -0,0 +1,11 @@
namespace Azaion.Common.Database;
public interface IAnnotationRepository
{
Task<List<Annotation>> GetByMediaHashAsync(string hash, CancellationToken ct = default);
Task<Annotation?> GetByNameAsync(string name, CancellationToken ct = default);
Task<List<Annotation>> GetAllAsync(CancellationToken ct = default);
Task SaveAsync(Annotation annotation, CancellationToken ct = default);
Task DeleteAsync(List<string> names, CancellationToken ct = default);
}