Exemplo n.º 1
0
 public UnityAutoMoqExtension(
     MockRepository mockRepository,
     UnityAutoMockContainer autoMockContainer)
 {
     _mockRepository    = mockRepository;
     _autoMockContainer = autoMockContainer;
 }
Exemplo 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>();
        }