public EditDistributedParameterPresenter(IEditDistributedParameterView view, IEditTaskFor <IParameter> editTasks, IMoBiContext context, IDistributedParameterToDistributedParameterDTOMapper distributedParameterMapper, IDistributionFormulaFactory distributionFormulaFactory, IQuantityTask quantityTask, IFormulaToFormulaBuilderDTOMapper formulaMapper, IMoBiFormulaTask formulaTask, IParameterFactory parameterFactory, IInteractionTasksForParameter parameterTask) : base(view) { _editTasks = editTasks; _distributionFormulaFactory = distributionFormulaFactory; _quantityTask = quantityTask; _formulaMapper = formulaMapper; _formulaTask = formulaTask; _parameterFactory = parameterFactory; _parameterTask = parameterTask; _distributedParameterMapper = distributedParameterMapper; _context = context; }
protected override void Context() { _commandCollector = A.Fake <ICommandCollector>(); _view = A.Fake <IEditDistributedParameterView>(); _editTask = A.Fake <IEditTaskFor <IParameter> >(); _context = A.Fake <IMoBiContext>(); _distributedParameterMapper = A.Fake <IDistributedParameterToDistributedParameterDTOMapper>(); _distributionFormulaFactory = A.Fake <IDistributionFormulaFactory>(); _quantityTask = A.Fake <IQuantityTask>(); _formulaMapper = A.Fake <IFormulaToFormulaBuilderDTOMapper>(); _formulaTask = A.Fake <IMoBiFormulaTask>(); _parameterFactory = A.Fake <IParameterFactory>(); _parameterTask = A.Fake <IInteractionTasksForParameter>(); sut = new EditDistributedParameterPresenter(_view, _editTask, _context, _distributedParameterMapper, _distributionFormulaFactory, _quantityTask, _formulaMapper, _formulaTask, _parameterFactory, _parameterTask); sut.InitializeWith(_commandCollector); }