Ejemplo n.º 1
0
        public static ITestCommand CreateCommand(IMethodInfo methodInfo, ConstructorInfo constructor, MockSettings settings, MockSettings constructorSettings)
        {
            var requestProvider = new RequestProvider();
              var reflectionHelper = new ReflectionHelper();
              var mockRepository = new MoqMockRepository (reflectionHelper);
              var constructorChooser = new CompositeConstructorChooser (s_constructorChoosers);
              var resolver = new Resolver (mockRepository, constructorChooser, reflectionHelper);
              var moqResolver = new MoqResolver (resolver);

              return new NukitoFactCommand (methodInfo, constructor, requestProvider, moqResolver, reflectionHelper, mockRepository, settings, constructorSettings);
        }
Ejemplo n.º 2
0
 public MoqMockRepositoryTest(ReflectionHelper reflectionHelper)
 {
     // Integration like test
       _repository = new MoqMockRepository(reflectionHelper);
 }