protected virtual void CleanupInstance(IVirtualCompanionExecutionContextFactory instance) { if (instance is IDisposable disposable) { disposable.Dispose(); } }
public void InitializeInstanceTestInitialize() { Instance = InitializeInstance(); }
public void CleanupInstanceTestCleanup() { CleanupInstance(Instance); Instance = null; }
public VirtualCompanionExecutionContextJsonConverter(IVirtualCompanionExecutionContextFactory virtualCompanionExecutionContextFactory) { _virtualCompanionExecutionContextFactory = virtualCompanionExecutionContextFactory; }