public void SetUp() { _assemblyContextPoolMock = MockRepository.GenerateStrictMock <IAssemblyContextPool>(); _assemblyContext = CreateAssemblyContext(); _decorator = new ThreadLocalAssemblyContextPoolDecorator(_assemblyContextPoolMock); }
public void SetUp() { _typeAssemblerMock = MockRepository.GenerateStrictMock <ITypeAssembler>(); _assemblyContextPoolMock = MockRepository.GenerateStrictMock <IAssemblyContextPool>(); _cache = new TypeCache(_typeAssemblerMock, _assemblyContextPoolMock); _additionalTypes = (IDictionary <object, Lazy <Type> >)PrivateInvoke.GetNonPublicField(_cache, "_additionalTypes"); }
public void SetUp() { _typeCacheMock = MockRepository.GenerateStrictMock <ITypeCache>(); _typeAssemblerMock = MockRepository.GenerateStrictMock <ITypeAssembler>(); _assemblyContextPool = MockRepository.GenerateStrictMock <IAssemblyContextPool>(); _manager = new CodeManager(_typeCacheMock, _typeAssemblerMock, _assemblyContextPool); }
public CodeManager(ITypeCache typeCache, ITypeAssembler typeAssembler, IAssemblyContextPool assemblyContextPool) { ArgumentUtility.CheckNotNull("assemblyContextPool", assemblyContextPool); ArgumentUtility.CheckNotNull("typeAssembler", typeAssembler); ArgumentUtility.CheckNotNull("typeCache", typeCache); _typeCache = typeCache; _typeAssembler = typeAssembler; _assemblyContextPool = assemblyContextPool; }
public TypeCache(ITypeAssembler typeAssembler, IAssemblyContextPool assemblyContextPool) { ArgumentUtility.CheckNotNull("typeAssembler", typeAssembler); ArgumentUtility.CheckNotNull("assemblyContextPool", assemblyContextPool); _typeAssembler = typeAssembler; _assemblyContextPool = assemblyContextPool; _createAssembledTypeFunc = CreateAssembledType; _createAdditionalTypeFunc = CreateAdditionalType; }
protected override ICodeManager NewCodeManager(ITypeCache typeCache, ITypeAssembler typeAssembler, IAssemblyContextPool assemblyContextPool) { var codeManager = base.NewCodeManager(typeCache, typeAssembler, assemblyContextPool); AssemblyTrackingCodeManager = new AssemblyTrackingCodeManager(codeManager); return(AssemblyTrackingCodeManager); }
public ThreadLocalAssemblyContextPoolDecorator(IAssemblyContextPool assemblyContextPool) { _assemblyContextPool = assemblyContextPool; }
protected virtual ITypeCache NewTypeCache(ITypeAssembler typeAssembler, IAssemblyContextPool assemblyContextPool) { return(new TypeCache(typeAssembler, assemblyContextPool)); }
protected virtual ICodeManager NewCodeManager(ITypeCache typeCache, ITypeAssembler typeAssembler, IAssemblyContextPool assemblyContextPool) { return(new CodeManager(typeCache, typeAssembler, assemblyContextPool)); }