public void SetUp() { _typeAssemblerMock = MockRepository.GenerateStrictMock <ITypeAssembler>(); _typeCacheMock = MockRepository.GenerateStrictMock <ITypeCache>(); _constructorCallCache = MockRepository.GenerateStrictMock <IConstructorCallCache>(); _constructorForAssembledTypeCacheMock = MockRepository.GenerateStrictMock <IConstructorForAssembledTypeCache>(); _service = new ReflectionService(_typeAssemblerMock, _typeCacheMock, _constructorCallCache, _constructorForAssembledTypeCacheMock); }
public ReflectionService( ITypeAssembler typeAssembler, ITypeCache typeCache, IConstructorCallCache constructorCallCache, IConstructorForAssembledTypeCache constructorForAssembledTypeCache) { ArgumentUtility.CheckNotNull("typeAssembler", typeAssembler); ArgumentUtility.CheckNotNull("typeCache", typeCache); ArgumentUtility.CheckNotNull("constructorCallCache", constructorCallCache); ArgumentUtility.CheckNotNull("constructorForAssembledTypeCache", constructorForAssembledTypeCache); _typeAssembler = typeAssembler; _typeCache = typeCache; _constructorCallCache = constructorCallCache; _constructorForAssembledTypeCache = constructorForAssembledTypeCache; }