public override void SetUp() { base.SetUp(); var cache = new ImmutableInMemorySpecCache(); ReflectorConfiguration.NoValidate = true; var reflectorConfiguration = new ReflectorConfiguration(new Type[] { }, new Type[] { }, new string[] { }); var functionalReflectorConfiguration = new FunctionalReflectorConfiguration(new Type[] { }, new Type[] { }); facetFactory = new RemoveIgnoredMethodsFacetFactory(0, LoggerFactory); var menuFactory = new NullMenuFactory(); var classStrategy = new DefaultClassStrategy(reflectorConfiguration); var metamodel = new Metamodel(classStrategy, cache, null); var mockLogger = new Mock <ILogger <ParallelReflector> >().Object; var mockLoggerFactory = new Mock <ILoggerFactory>().Object; Reflector = new ParallelReflector(classStrategy, metamodel, reflectorConfiguration, functionalReflectorConfiguration, menuFactory, new IFacetDecorator[] { }, new IFacetFactory[] { facetFactory }, mockLoggerFactory, mockLogger); }
public override void SetUp() { base.SetUp(); var cache = new ImmutableInMemorySpecCache(); ObjectReflectorConfiguration.NoValidate = true; var reflectorConfiguration = new ObjectReflectorConfiguration(new Type[] { }, new Type[] { }); var functionalReflectorConfiguration = new FunctionalReflectorConfiguration(new Type[] { }, new Type[] { }); facetFactory = new RemoveEventHandlerMethodsFacetFactory(GetOrder <RemoveEventHandlerMethodsFacetFactory>(), LoggerFactory); var menuFactory = new NullMenuFactory(); var objectFactFactorySet = new ObjectFacetFactorySet(new IObjectFacetFactoryProcessor[] { facetFactory }); var classStrategy = new ObjectClassStrategy(reflectorConfiguration); var metamodel = new Metamodel(cache, null); var mockLogger = new Mock <ILogger <AbstractParallelReflector> >().Object; var mockLoggerFactory = new Mock <ILoggerFactory>().Object; Reflector = new ObjectReflector(objectFactFactorySet, classStrategy, metamodel, reflectorConfiguration, new IFacetDecorator[] { }, mockLoggerFactory, mockLogger); }
public override void SetUp() { base.SetUp(); var cache = new ImmutableInMemorySpecCache(); ReflectorConfiguration.NoValidate = true; var config = new ReflectorConfiguration(new Type[] { }, new Type[] { }, new[] { typeof(Customer).Namespace }); var functionalReflectorConfiguration = new FunctionalReflectorConfiguration(new Type[] { }, new Type[] { }); var menuFactory = new NullMenuFactory(); facetFactory = new SystemClassMethodFilteringFactory(0, LoggerFactory); var classStrategy = new DefaultClassStrategy(config); var metamodel = new Metamodel(classStrategy, cache, null); var mockLogger = new Mock <ILogger <ParallelReflector> >().Object; var mockLoggerFactory = new Mock <ILoggerFactory>().Object; Reflector = new ParallelReflector(classStrategy, metamodel, config, functionalReflectorConfiguration, menuFactory, new IFacetDecorator[] { }, new IFacetFactory[] { facetFactory }, mockLoggerFactory, mockLogger); }
public virtual void SetUp() { var cache = new ImmutableInMemorySpecCache(); ReflectorConfiguration.NoValidate = true; var config = new ReflectorConfiguration(new[] { typeof(List <TestPoco>), typeof(ArrayList) }, new Type[] { }, new[] { typeof(TestPoco).Namespace }); var functionalReflectorConfiguration = new FunctionalReflectorConfiguration(new Type[] { }, new Type[] { }); var menuFactory = new NullMenuFactory(); var classStrategy = new DefaultClassStrategy(config); var mockLogger = new Mock <ILogger <Metamodel> >().Object; var metamodel = new Metamodel(classStrategy, cache, mockLogger); var mockLogger1 = new Mock <ILogger <ParallelReflector> >().Object; var mockLoggerFactory = new Mock <ILoggerFactory>().Object; var reflector = new ParallelReflector(classStrategy, metamodel, config, functionalReflectorConfiguration, menuFactory, new IFacetDecorator[] { }, facetFactories, mockLoggerFactory, mockLogger1); ITypeSpecBuilder spec; (spec, Metamodel) = LoadSpecification(reflector); Specification = spec as IObjectSpecImmutable; }