DD.WellWorkover.Cloud/AsbCloudWebApi.IntegrationTests/Clients/IAdminDepositClient.cs
Степанов Дмитрий 88ce24b8bb Интеграционные тесты
1. Создание инфраструктуры для интегарционных тестов
2. Покрытие контроллера месторождений тестами
2023-12-29 11:46:17 +05:00

27 lines
741 B
C#

using AsbCloudApp.Data;
using Refit;
namespace AsbCloudWebApi.IntegrationTests.Clients;
public interface IAdminDepositClient
{
private const string BaseRoute = "/api/admin/deposit";
[Post(BaseRoute)]
Task<IApiResponse<int>> InsertAsync([Body] DepositBaseDto deposit);
[Post($"{BaseRoute}/range")]
Task<IApiResponse<int>> InsertRangeAsync([Body] IEnumerable<DepositBaseDto> deposits);
[Put($"{BaseRoute}")]
Task<IApiResponse<int>> UpdateAsync([Body] DepositBaseDto deposit);
[Get(BaseRoute + "/{id}")]
Task<IApiResponse<DepositBaseDto>> GetOrDefaultAsync(int id);
[Get(BaseRoute)]
Task<IApiResponse<IEnumerable<DepositBaseDto>>> GetAllAsync();
[Delete(BaseRoute + "/{id}")]
Task<IApiResponse<int>> DeleteAsync(int id);
}