Skip to content

Commit

Permalink
Merge branch 'update-sdk' into ui-host-app-test-binding
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhathcock committed Jan 9, 2025
2 parents a62e59b + ad25e95 commit 0262ef0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Sdk/Speckle.HostApps/ServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,13 @@ public static void UseHostAppTesting(this IServiceCollection serviceCollection)

public sealed class TestSqLiteJsonCacheManagerFactory : ISqLiteJsonCacheManagerFactory, IDisposable
{
private readonly SqLiteJsonCacheManager _sqLiteJsonCacheManager =
new SqLiteJsonCacheManager("Data Source=:memory;");
private readonly SqLiteJsonCacheManager _sqLiteJsonCacheManager = new("Data Source=:memory;", 1);

public ISqLiteJsonCacheManager CreateForUser(string scope) => _sqLiteJsonCacheManager;

public ISqLiteJsonCacheManager CreateFromStream(string streamId) => _sqLiteJsonCacheManager;

public void Dispose() { }
public void Dispose() => _sqLiteJsonCacheManager.Dispose();
}

public class TestAccountService : IAccountService
Expand Down

0 comments on commit 0262ef0

Please sign in to comment.