public void Setup()
 {
     m_logger             = A.Fake <ILogger>();
     m_view               = A.Fake <IMainView>();
     m_controllersFactory = A.Fake <IConfiguratorControllersFactory>();
     m_repositoryFactory  = A.Fake <IGitRepositoryFactory>();
     m_controller         = new MainViewController(m_view, m_repositoryFactory, m_controllersFactory, m_logger);
 }
Exemple #2
0
 public MainViewController(IMainView view, IGitRepositoryFactory repositoryFactory,
                           IConfiguratorControllersFactory controllersFactory, ILogger logger)
 {
     m_view = view;
     m_repositoryFactory  = repositoryFactory;
     m_controllersFactory = controllersFactory;
     m_logger             = logger;
     m_view.SetController(this);
 }