protected override void Arrange() { var container = ContainerHelper.CreateContainer(new Options()); _assemblyDataProvider = container.Resolve <IEnumerable <IAssemblyDataProvider> >() .Single(x => x is AssemblyDataProvider); }
/// <summary> /// Creates a new <see cref="AppSerializer"/>. /// </summary> /// <param name="assemblyDataProvider">The assembly data provider.</param> /// <param name="assetLookup">The asset lookup to use.</param> public AppSerializer(IAssemblyDataProvider assemblyDataProvider, AssetLookup assetLookup) { mAssetLookup = assetLookup; mSerializableTypes = SerializationUtils.BuildSerializableTypeSet("Assembly-CSharp"); mJsonSettings = new JsonSerializerSettings() { ContractResolver = new UnityJsonContractResolver(assemblyDataProvider, mAssetLookup) }; }
public AssemblyLoader( IAssemblyDataProvider assemblyDataProvider, IAssemblyLoadContext assemblyLoadContext) { _assemblyDataProvider = assemblyDataProvider; _assemblyLoadContext = assemblyLoadContext; _loadingAssemblies = new ConcurrentDictionary <AssemblyName, Task <Assembly?> >( AssemblyByNameAndVersionComparer.Default); }
protected override void Arrange() { var container = ContainerHelper.CreateContainer( new Options { ExtensionPaths = new[] { new CodeRepositoryHelper(TestContext.CurrentContext.TestDirectory)[ CodeRepositoryConventions.ExtensionsRepositoryName] } }); _assemblyDataProvider = container.Resolve <IEnumerable <IAssemblyDataProvider> >() .Single(x => x is AssemblyDataProvider); }
public ApplicationRunner(ITemplateProcessor templateProcessor, IAssemblyDataProvider assemblyDataProvider) { _templateProcessor = templateProcessor ?? throw new ArgumentNullException(nameof(templateProcessor)); _assemblyDataProvider = assemblyDataProvider ?? throw new ArgumentNullException(nameof(assemblyDataProvider)); }
protected override void Arrange() { _container = ContainerHelper.CreateContainer(); _assemblyDataProvider = _container.Resolve <IAssemblyDataProvider>(); }