public UnityAutoMoqExtension(
     MockRepository mockRepository,
     UnityAutoMockContainer autoMockContainer)
 {
     _mockRepository    = mockRepository;
     _autoMockContainer = autoMockContainer;
 }
Example #2
0
        public UnityAutoMoqBuilderStrategy(
            MockRepository mockRepository,
            UnityAutoMockContainer autoMockContainer)
        {
            _mockRepository    = mockRepository;
            _autoMockContainer = autoMockContainer;

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

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