Premiere commit - Omika
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
using Omika.App.Local.Abstractions;
|
||||
using Omika.Core.Contracts.Common;
|
||||
using Omika.Core.Contracts.Configuration;
|
||||
|
||||
namespace Omika.Tests.Mobile.Local;
|
||||
|
||||
/// <summary>
|
||||
/// Stub réutilisable de <see cref="IParametreMetierLocalService"/> : chaque
|
||||
/// référentiel est configurable ; le défaut est vide (aucun appel API).
|
||||
/// </summary>
|
||||
public sealed class StubParametreMetierService : IParametreMetierLocalService
|
||||
{
|
||||
public IReadOnlyList<ReferenceValueDto> TypeTemps { get; set; } = [];
|
||||
public IReadOnlyList<ReferenceValueDto> InterventionTypes { get; set; } = [];
|
||||
public IReadOnlyList<ReferenceValueDto> InterventionEtats { get; set; } = [];
|
||||
public IReadOnlyList<ReferenceValueDto> DossierTypes { get; set; } = [];
|
||||
public IReadOnlyList<ReferenceValueDto> DossierStatuts { get; set; } = [];
|
||||
public IReadOnlyList<ReferenceValueDto> ClientTypes { get; set; } = [];
|
||||
public IReadOnlyList<ReferenceValueDto> ClientStatuts { get; set; } = [];
|
||||
public IReadOnlyList<ReferenceValueDto> SiteTypes { get; set; } = [];
|
||||
public TypeTempsParametresDto? TypeTempsParametres { get; set; }
|
||||
public TypeRdvParametresDto? TypeRdvParametres { get; set; }
|
||||
public StatutRdvParametresDto? StatutRdvParametres { get; set; }
|
||||
|
||||
public Task<IReadOnlyList<ReferenceValueDto>> GetTypeTempsAsync(CancellationToken cancellationToken = default)
|
||||
=> Task.FromResult(TypeTemps);
|
||||
|
||||
public Task<TypeTempsParametresDto?> GetTypeTempsParametresAsync(string typeTempsKey, CancellationToken cancellationToken = default)
|
||||
=> Task.FromResult(TypeTempsParametres);
|
||||
|
||||
public Task<TypeRdvParametresDto?> GetTypeRdvParametresAsync(string typeRdvKey, CancellationToken cancellationToken = default)
|
||||
=> Task.FromResult(TypeRdvParametres);
|
||||
|
||||
public Task<StatutRdvParametresDto?> GetStatutRdvParametresAsync(string statutRdvKey, CancellationToken cancellationToken = default)
|
||||
=> Task.FromResult(StatutRdvParametres);
|
||||
|
||||
public Task<IReadOnlyList<ReferenceValueDto>> GetInterventionTypesAsync(CancellationToken cancellationToken = default)
|
||||
=> Task.FromResult(InterventionTypes);
|
||||
|
||||
public Task<IReadOnlyList<ReferenceValueDto>> GetInterventionEtatsAsync(CancellationToken cancellationToken = default)
|
||||
=> Task.FromResult(InterventionEtats);
|
||||
|
||||
public Task<IReadOnlyList<ReferenceValueDto>> GetDossierTypesAsync(CancellationToken cancellationToken = default)
|
||||
=> Task.FromResult(DossierTypes);
|
||||
|
||||
public Task<IReadOnlyList<ReferenceValueDto>> GetDossierStatutsAsync(CancellationToken cancellationToken = default)
|
||||
=> Task.FromResult(DossierStatuts);
|
||||
|
||||
public Task<IReadOnlyList<ReferenceValueDto>> GetClientTypesAsync(CancellationToken cancellationToken = default)
|
||||
=> Task.FromResult(ClientTypes);
|
||||
|
||||
public Task<IReadOnlyList<ReferenceValueDto>> GetClientStatutsAsync(CancellationToken cancellationToken = default)
|
||||
=> Task.FromResult(ClientStatuts);
|
||||
|
||||
public Task<IReadOnlyList<ReferenceValueDto>> GetSiteTypesAsync(CancellationToken cancellationToken = default)
|
||||
=> Task.FromResult(SiteTypes);
|
||||
|
||||
public Task<IReadOnlyList<ReferenceValueDto>> GetTypeSignatairesAsync(CancellationToken cancellationToken = default)
|
||||
=> Task.FromResult<IReadOnlyList<ReferenceValueDto>>([]);
|
||||
}
|
||||
Reference in New Issue
Block a user