2026-05-27 21:33:48 +03:30
|
|
|
using Meezi.API.Services;
|
|
|
|
|
|
|
|
|
|
namespace Meezi.API.Tests;
|
|
|
|
|
|
|
|
|
|
internal sealed class NoOpInventoryService : IInventoryService
|
|
|
|
|
{
|
|
|
|
|
public Task<IReadOnlyList<IngredientDto>> ListAsync(string cafeId, CancellationToken ct = default) =>
|
|
|
|
|
Task.FromResult<IReadOnlyList<IngredientDto>>([]);
|
|
|
|
|
|
|
|
|
|
public Task<IReadOnlyList<IngredientDto>> LowStockAsync(string cafeId, CancellationToken ct = default) =>
|
|
|
|
|
Task.FromResult<IReadOnlyList<IngredientDto>>([]);
|
|
|
|
|
|
|
|
|
|
public Task<IngredientDto?> CreateAsync(string cafeId, CreateIngredientRequest request, CancellationToken ct = default) =>
|
|
|
|
|
Task.FromResult<IngredientDto?>(null);
|
|
|
|
|
|
|
|
|
|
public Task<IngredientDto?> UpdateAsync(string cafeId, string ingredientId, UpdateIngredientRequest request, CancellationToken ct = default) =>
|
|
|
|
|
Task.FromResult<IngredientDto?>(null);
|
|
|
|
|
|
2026-06-01 18:44:41 +03:30
|
|
|
public Task<IngredientDto?> AdjustAsync(string cafeId, string ingredientId, AdjustStockRequest request, string? userId, CancellationToken ct = default) =>
|
2026-05-27 21:33:48 +03:30
|
|
|
Task.FromResult<IngredientDto?>(null);
|
|
|
|
|
|
2026-06-01 18:44:41 +03:30
|
|
|
public Task<InventoryPurchasesSummaryDto> GetPurchasesSummaryAsync(
|
|
|
|
|
string cafeId,
|
|
|
|
|
string branchId,
|
|
|
|
|
DateOnly from,
|
|
|
|
|
DateOnly to,
|
|
|
|
|
CancellationToken ct = default) =>
|
|
|
|
|
Task.FromResult(new InventoryPurchasesSummaryDto(0, 0, []));
|
|
|
|
|
|
2026-05-27 21:33:48 +03:30
|
|
|
public Task<MenuItemRecipeDto?> GetRecipeAsync(string cafeId, string menuItemId, CancellationToken ct = default) =>
|
|
|
|
|
Task.FromResult<MenuItemRecipeDto?>(null);
|
|
|
|
|
|
|
|
|
|
public Task<MenuItemRecipeDto?> SetRecipeAsync(string cafeId, string menuItemId, SetMenuItemRecipeRequest request, CancellationToken ct = default) =>
|
|
|
|
|
Task.FromResult<MenuItemRecipeDto?>(null);
|
|
|
|
|
|
|
|
|
|
public Task<OrderDeductionResult> DeductForOrderAsync(
|
|
|
|
|
string cafeId,
|
|
|
|
|
string orderId,
|
|
|
|
|
IReadOnlyList<(string MenuItemId, int Quantity)> lines,
|
|
|
|
|
CancellationToken ct = default) =>
|
|
|
|
|
Task.FromResult(new OrderDeductionResult(false, []));
|
|
|
|
|
}
|