mirror of
https://github.com/StockSharp/StockSharp.git
synced 2026-12-06 01:22:11 +00:00
31 lines
906 B
C#
31 lines
906 B
C#
namespace StockSharp.Tests;
|
|
|
|
using Ecng.Compilation;
|
|
using Ecng.Compilation.Roslyn;
|
|
using Ecng.Interop;
|
|
|
|
using StockSharp.Algo.Compilation;
|
|
using StockSharp.Algo.Export;
|
|
|
|
[TestClass]
|
|
public static class AsmInit
|
|
{
|
|
[AssemblyInitialize]
|
|
public static async Task Init(TestContext _)
|
|
{
|
|
ConfigManager.RegisterService<ICompiler>(new CSharpCompiler());
|
|
ConfigManager.RegisterService<ISecurityProvider>(new CollectionSecurityProvider());
|
|
ConfigManager.RegisterService<IExchangeInfoProvider>(new InMemoryExchangeInfoProvider());
|
|
ConfigManager.RegisterService<IExcelWorkerProvider>(new DevExpExcelWorkerProvider());
|
|
|
|
await CompilationExtensions.Init(Helper.LogManager.Application, [("designer_extensions.py", File.ReadAllText("../../../../Diagram.Core/python/designer_extensions.py"))], default);
|
|
|
|
Helper.ClearTemp();
|
|
}
|
|
|
|
[AssemblyCleanup]
|
|
public static void UnInit()
|
|
{
|
|
Helper.ClearTemp();
|
|
}
|
|
} |