Example #1
0
 protected override void Context()
 {
     _view = A.Fake <IEditSpatialStructureView>();
     _hierarchicalPresenter          = A.Fake <IHierarchicalSpatialStructurePresenter>();
     _formulaCachePresenter          = A.Fake <IFormulaCachePresenter>();
     _containerPresenter             = A.Fake <IEditContainerPresenter>();
     _diagramPresenter               = A.Fake <ISpatialStructureDiagramPresenter>();
     _favoritesPresenter             = A.Fake <IEditFavoritesInSpatialStructurePresenter>();
     _userDefinedParametersPresenter = A.Fake <IUserDefinedParametersPresenter>();
     sut = new EditSpatialStructurePresenter(_view, _hierarchicalPresenter, _formulaCachePresenter,
                                             _containerPresenter, _diagramPresenter, new HeavyWorkManagerForSpecs(), _favoritesPresenter, _userDefinedParametersPresenter);
 }
 public EditSpatialStructurePresenter(
     IEditSpatialStructureView view,
     IHierarchicalSpatialStructurePresenter hierarchicalSpatialStructurePresenter,
     IFormulaCachePresenter formulaCachePresenter,
     IEditContainerPresenter editPresenter,
     ISpatialStructureDiagramPresenter spatialStructureDiagramPresenter,
     IHeavyWorkManager heavyWorkManager,
     IEditFavoritesInSpatialStructurePresenter favoritesPresenter,
     IUserDefinedParametersPresenter userDefinedParametersPresenter) :
     base(view, formulaCachePresenter, favoritesPresenter, userDefinedParametersPresenter)
 {
     _hierarchicalSpatialStructurePresenter = hierarchicalSpatialStructurePresenter;
     _spatialStructureDiagramPresenter      = spatialStructureDiagramPresenter;
     _heavyWorkManager = heavyWorkManager;
     favoritesPresenter.ShouldHandleRemovedEvent = shouldHandleRemoved;
     _editPresenter = editPresenter;
     _view.SetEditView(_editPresenter.BaseView);
     _view.SetHierarchicalStructureView(_hierarchicalSpatialStructurePresenter.BaseView);
     _view.SetSpaceDiagramView(spatialStructureDiagramPresenter.View);
     AddSubPresenters(editPresenter, hierarchicalSpatialStructurePresenter, spatialStructureDiagramPresenter);
 }