d305fe59cb
* First pass of ObjectSaver and better in-memory usage * fix some tests * add commit to match deserialize process * correct more tests * format * make a deserialize factory * fix tests? and format * use distinct * Fix mismerge * Fix serialization issues with tests * fix merges * follow copilot suggestions * remove disables * change registration to take strings and TypeLoader isn't public * remove unused transports * more test fixes * fmt * add Application object back
15 lines
419 B
C#
15 lines
419 B
C#
using System.Reflection;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Speckle.Sdk.Tests.Unit;
|
|
|
|
public static class TestServiceSetup
|
|
{
|
|
public static IServiceProvider GetServiceProvider()
|
|
{
|
|
var serviceCollection = new ServiceCollection();
|
|
serviceCollection.AddSpeckleSdk(new("Tests", "test"), "v3", Assembly.GetExecutingAssembly());
|
|
return serviceCollection.BuildServiceProvider();
|
|
}
|
|
}
|