Refactor API clients to use interface-based DI

Introduce interfaces for all API clients and update dependency injection to use these interfaces. Refactor services and components to depend on abstractions instead of concrete implementations, improving testability and maintainability.
This commit is contained in:
OlgunR
2026-04-20 13:23:16 +02:00
parent 177d418ac3
commit aab6478f9a
13 changed files with 56 additions and 12 deletions

View File

@@ -0,0 +1,11 @@
using DbFirst.BlazorWebApp.Models;
namespace DbFirst.BlazorWebApp.Services
{
public interface ILayoutApiClient
{
Task<LayoutDto?> GetAsync(string layoutType, string layoutKey, string userName);
Task<LayoutDto> UpsertAsync(LayoutDto dto);
Task DeleteAsync(string layoutType, string layoutKey, string userName);
}
}