public EditTableFormulaPresenter(IEditTableFormulaView view, ITableFormulaToDTOTableFormulaMapper tableFormulaToDTOTableFormulaMapper, IMoBiContext context, ITableFormulaTask tableFormulaTask, IMoBiApplicationController applicationController, IMoBiFormulaTask moBiFormulaTask, IDisplayUnitRetriever displayUnitRetriever) : base(view, displayUnitRetriever) { _tableFormulaToDTOTableFormulaMapper = tableFormulaToDTOTableFormulaMapper; _context = context; _tableFormulaTask = tableFormulaTask; _applicationController = applicationController; _moBiFormulaTask = moBiFormulaTask; }
protected override void Context() { _view = A.Fake <IEditTableFormulaView>(); _tableFormulaToDTOTableFormulaMapper = A.Fake <ITableFormulaToDTOTableFormulaMapper>(); _context = A.Fake <IMoBiContext>(); _tableFormulaTask = A.Fake <ITableFormulaTask>(); _applicationController = A.Fake <IMoBiApplicationController>(); _moBiFormulaTask = A.Fake <IMoBiFormulaTask>(); _displayUnitRetriever = A.Fake <IDisplayUnitRetriever>(); sut = new EditTableFormulaPresenter(_view, _tableFormulaToDTOTableFormulaMapper, _context, _tableFormulaTask, _applicationController, _moBiFormulaTask, _displayUnitRetriever); _commandCollector = A.Fake <ICommandCollector>(); sut.InitializeWith(_commandCollector); }