public SystemVariablesIntegrationTestFixture()
 {
     _repo      = new SystemVariablesRepository();
     _manager   = new SystemVariablesManager(_repo);
     _mockView  = new Mock <ISystemVariablesView>();
     _presenter = new SystemVariablesPresenter(_mockView.Object, _manager);
 }
Пример #2
0
 /// <summary>
 /// Inject all interfaces, assign in constructor and initialise events.
 /// </summary>
 /// <param name="impositionFormManager"></param>
 /// <param name="systemVariablesManager"></param>
 /// <param name="systemVariablesFormPresenter"></param>
 /// <param name="printingDesignManager"></param>
 public ImpositionForm(IImpositionCalculatorManager impositionFormManager, ISystemVariablesManager systemVariablesManager,
                       SystemVariablesPresenter systemVariablesFormPresenter, IPrintingDesignManager printingDesignManager)
 {
     _systemVariablesManager       = systemVariablesManager;
     _signatureSizeManager         = impositionFormManager;
     _systemVariablesFormPresenter = systemVariablesFormPresenter;
     _printingDesignManager        = printingDesignManager;
     InitializeComponent();
 }
Пример #3
0
 /// <summary>
 /// Inject all interfaces, assign in constructor and initialise events.
 /// </summary>
 /// <param name="View"></param>
 /// <param name="impositionCalculatorManager"></param>
 /// <param name="systemVariablesManager"></param>
 /// <param name="systemVariablesFormPresenter"></param>
 /// <param name="printingDesignManager"></param>
 public ImpositionCalculatorPresenter(IImpositionFormView View,
                                      IImpositionCalculatorManager impositionCalculatorManager,
                                      ISystemVariablesManager systemVariablesManager,
                                      SystemVariablesPresenter systemVariablesFormPresenter,
                                      IPrintingDesignManager printingDesignManager)
 {
     _view = View;
     _impostionCalculatorManager   = impositionCalculatorManager;
     _systemVariablesManager       = systemVariablesManager;
     _systemVariablesFormPresenter = systemVariablesFormPresenter;
     _printingDesignManager        = printingDesignManager;
     InitialiseEvents();
 }
 /// <summary>
 /// Inject all interfaces, assign in constructor and initialise events.
 /// </summary>
 /// <param name="_manager"></param>
 public SystemVariablesForm(ISystemVariablesManager _manager)
 {
     manager = _manager;
     InitializeComponent();
 }
 /// <summary>
 /// Inject all interfaces, assign in constructor and initialise events.
 /// </summary>
 /// <param name="view"></param>
 /// <param name="systemVariablesManager"></param>
 public SystemVariablesPresenter(ISystemVariablesView view, ISystemVariablesManager systemVariablesManager)
 {
     _view = view;
     _systemVariablesManager = systemVariablesManager;
     InitialiseEvents();
 }