using System; using System.Collections.Generic; using System.Threading.Tasks; using LiteDB.Async; using StabilityMatrix.Core.Database; using StabilityMatrix.Core.Models.Api; using StabilityMatrix.Core.Models.Database; namespace StabilityMatrix.Avalonia.DesignData; public class MockLiteDbContext : ILiteDbContext { public LiteDatabaseAsync Database => throw new NotImplementedException(); public ILiteCollectionAsync CivitModels => throw new NotImplementedException(); public ILiteCollectionAsync CivitModelVersions => throw new NotImplementedException(); public ILiteCollectionAsync CivitModelQueryCache => throw new NotImplementedException(); public ILiteCollectionAsync LocalModelFiles => throw new NotImplementedException(); public ILiteCollectionAsync InferenceProjects => throw new NotImplementedException(); 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 Task GetGithubCacheEntry(string cacheKey) { return Task.FromResult(null); } public Task UpsertGithubCacheEntry(GithubCacheEntry cacheEntry) { return Task.FromResult(true); } public void Dispose() { GC.SuppressFinalize(this); } }