Ejemplo n.º 1
0
 public UnityAutoMoqExtension(
     MockRepository mockRepository,
     UnityAutoMockContainer autoMockContainer)
 {
     _mockRepository    = mockRepository;
     _autoMockContainer = autoMockContainer;
 }
Ejemplo n.º 2
0
        public UnityAutoMoqBuilderStrategy(
            MockRepository mockRepository,
            UnityAutoMockContainer autoMockContainer)
        {
            _mockRepository    = mockRepository;
            _autoMockContainer = autoMockContainer;

            _createMethod = mockRepository.GetType().GetMethod("Create", new Type[] { });

            _mocks = new Dictionary <Type, object>();
        }