protected override void Context()
 {
     _entityPathResolver = A.Fake <IEntityPathResolver>();
     _favoriteRepository = A.Fake <IFavoriteRepository>();
     _view = A.Fake <IEditFavoritesView>();
     _editParameterListPresenter = A.Fake <IEditParameterListPresenter>();
     _favoriteTask = A.Fake <IFavoriteTask>();
     sut           = new EditFavoritesInSimulationPresenter(_view, _favoriteRepository, _entityPathResolver, _editParameterListPresenter, _favoriteTask);
 }
 public EditFavoritesInSimulationPresenter(
     IEditFavoritesView view,
     IFavoriteRepository favoriteRepository,
     IEntityPathResolver entityPathResolver,
     IEditParameterListPresenter editParameterListPresenter,
     IFavoriteTask favoriteTask)
     : base(view, favoriteRepository, entityPathResolver, editParameterListPresenter, favoriteTask)
 {
     ShouldHandleRemovedEvent = x => false; //Can not remove in Simulation
 }
示例#3
0
 protected EditFavoritesPresenter(
     IEditFavoritesView view,
     IFavoriteRepository favoriteRepository,
     IEntityPathResolver entityPathResolver,
     IEditParameterListPresenter editParameterListPresenter,
     IFavoriteTask favoriteTask)
     : base(view)
 {
     _favoriteRepository         = favoriteRepository;
     _entityPathResolver         = entityPathResolver;
     _editParameterListPresenter = editParameterListPresenter;
     _favoriteTask   = favoriteTask;
     _parameterCache = new Cache <string, IParameter>(pathFor, s => null);
     AddSubPresenters(_editParameterListPresenter);
     _view.AddParametersView(_editParameterListPresenter.BaseView);
 }
        protected override void Context()
        {
            _view = A.Fake <IEditFavoritesView>();
            _editParameterListPresenter = A.Fake <IEditParameterListPresenter>();
            _favoriteRepository         = A.Fake <IFavoriteRepository>();
            _entityPathResolver         = new EntityPathResolver(new ObjectPathFactory(A.Fake <IAliasCreator>()));
            _favoriteTask = A.Fake <IFavoriteTask>();

            sut = new EditFavoritesInSpatialStructurePresenter(_view, _favoriteRepository, _entityPathResolver, _editParameterListPresenter, _favoriteTask);
            _spatialStructure = new MoBiSpatialStructure();
            var cont = new Container().WithName("root");

            _para = new Parameter().WithName("P").WithParentContainer(cont);
            _fav  = new Parameter().WithName("F").WithParentContainer(cont);
            _spatialStructure.AddTopContainer(cont);
            A.CallTo(() => _favoriteRepository.All()).Returns(new[] { _entityPathResolver.PathFor(_fav) });
        }
 public EditFavoritesInMoleculesPresenter(IEditFavoritesView view, IFavoriteRepository favoriteRepository, IEntityPathResolver entityPathResolver, IEditParameterListPresenter editParameterListPresenter, IFavoriteTask favoriteTask)
     : base(view, favoriteRepository, entityPathResolver, editParameterListPresenter, favoriteTask)
 {
     UpdateSpecialColumnsVisibility = _editParameterListPresenter.ConfigureForMolecule;
 }
示例#6
0
 public EditFavoritesInSpatialStructurePresenter(IEditFavoritesView view, IFavoriteRepository favoriteRepository, IEntityPathResolver entityPathResolver, IEditParameterListPresenter editParameterListPresenter, IFavoriteTask favoriteTask)
     : base(view, favoriteRepository, entityPathResolver, editParameterListPresenter, favoriteTask)
 {
 }
示例#7
0
 public EditFavoritesInBuildindBlockPresenter(IEditFavoritesView view, IFavoriteRepository favoriteRepository, IEntityPathResolver entityPathResolver, IEditParameterListPresenter editParameterListPresenter, IFavoriteTask favoriteTask)
     : base(view, favoriteRepository, entityPathResolver, editParameterListPresenter, favoriteTask)
 {
 }