using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace AsbCloudWebApi.Tests { public interface IRepositoryFactory { Task DeleteAsync(int id, CancellationToken token); Task> GetAllAsync(CancellationToken token); TDto? GetOrDefault(int id); Task GetOrDefaultAsync(int id, CancellationToken token); Task InsertAsync(TDto newItem, CancellationToken token); Task InsertRangeAsync(IEnumerable newItems, CancellationToken token); Task UpdateAsync(TDto item, CancellationToken token); } }