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:
9
DbFirst.BlazorWebApp/Services/IDashboardApiClient.cs
Normal file
9
DbFirst.BlazorWebApp/Services/IDashboardApiClient.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using DbFirst.BlazorWebApp.Models;
|
||||
|
||||
namespace DbFirst.BlazorWebApp.Services
|
||||
{
|
||||
public interface IDashboardApiClient
|
||||
{
|
||||
Task<List<DashboardInfoDto>> GetAllAsync();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user