using System; using System.Collections.Generic; using System.Threading.Tasks; using LiteDB.Async; using StabilityMatrix.Core.Database; using StabilityMatrix.Core.Models.Api; namespace StabilityMatrix.Avalonia.DesignData; public class MockLiteDbContext : ILiteDbContext { public LiteDatabaseAsync Database { get; } public ILiteCollectionAsync CivitModels { get; } public ILiteCollectionAsync CivitModelVersions { get; } public ILiteCollectionAsync CivitModelQueryCache { get; } public Task<(CivitModel?, CivitModelVersion?)> FindCivitModelFromFileHashAsync(string hashBlake3) { return Task.FromResult<(CivitModel?, CivitModelVersion?)>((null, null)); } public Task UpsertCivitModelAsync(CivitModel civitModel) { return Task.FromResult(true); } public Task UpsertCivitModelAsync(IEnumerable civitModels) { return Task.FromResult(true); } public Task UpsertCivitModelQueryCacheEntryAsync(CivitModelQueryCacheEntry entry) { return Task.FromResult(true); } public void Dispose() { GC.SuppressFinalize(this); } }