Exemplo n.º 1
0
 public void Setup()
 {
     _advisorLocator = new Mock<IAdvisorLocator>();
     _dataFactory = new Mock<IDataFactory>();
     _eventManager = new Mock<IEventManager>();
     _adviseManager = new AdviseManager(_dataFactory.Object, _advisorLocator.Object, _eventManager.Object);
 }
Exemplo n.º 2
0
 public void Setup()
 {
     _advisorLocator = new Mock<IAdvisorLocator>();
     _dataFactory = new Mock<IDataFactory>();
     _eventManager = new Mock<IEventManager>();
     _answerRepository = new Mock<IAnswerRepository>();
     _questionRepository = new Mock<IQuestionRepository>();
     _pendingQuestionRepository = new Mock<IPendingQuestionRepository>();
     _dataFactory.Setup(x => x.AnswerRepository).Returns(_answerRepository.Object);
     _dataFactory.Setup(x => x.QuestionRepository).Returns(_questionRepository.Object);
     _dataFactory.Setup(x => x.PendingQuestionRepository).Returns(_pendingQuestionRepository.Object);
     _adviseManager = new AdviseManager(_dataFactory.Object, _advisorLocator.Object, _eventManager.Object);
 }