protected override void Context()
        {
            base.Context();
            _updateTableFormulaCommand        = A.Fake <ICommand>();
            _editedTableFormula               = new TableFormula();
            _editSolubilityParameterPresenter = A.Fake <IEditTableSolubilityParameterPresenter>();
            _parameter = DomainHelperForSpecs.ConstantParameterWithValue().WithName("SOL");
            A.CallTo(() => _applicationController.Start <IEditTableSolubilityParameterPresenter>()).Returns(_editSolubilityParameterPresenter);

            A.CallTo(() => _editSolubilityParameterPresenter.Edit(_parameter)).Returns(true);
            A.CallTo(() => _editSolubilityParameterPresenter.EditedFormula).Returns(_editedTableFormula);

            A.CallTo(() => _parameterTask.UpdateTableFormula(_parameter, _editedTableFormula)).Returns(_updateTableFormulaCommand);


            var solGroup = new ParameterAlternativeGroup().WithName(CoreConstants.Groups.COMPOUND_SOLUBILITY);

            _alternative = new ParameterAlternative().WithName("ALT1");
            _alternative.Add(_parameter);
            solGroup.AddAlternative(_alternative);
            var simulation = new IndividualSimulation {
                Properties = new SimulationProperties()
            };

            A.CallTo(() => _buildingBlockRepository.All <Simulation>()).Returns(new[] { simulation });

            var compoundProperties = new CompoundProperties();

            simulation.Properties.AddCompoundProperties(compoundProperties);
            compoundProperties.AddCompoundGroupSelection(new CompoundGroupSelection {
                AlternativeName = _alternative.Name, GroupName = solGroup.Name
            });
        }
        protected override void Context()
        {
            base.Context();
            _updateTableFormulaCommand        = A.Fake <ICommand>();
            _editedTableFormula               = new TableFormula();
            _editSolubilityParameterPresenter = A.Fake <IEditTableSolubilityParameterPresenter>();
            _parameter = DomainHelperForSpecs.ConstantParameterWithValue();
            A.CallTo(() => _applicationController.Start <IEditTableSolubilityParameterPresenter>()).Returns(_editSolubilityParameterPresenter);

            A.CallTo(() => _editSolubilityParameterPresenter.Edit(_parameter)).Returns(true);
            A.CallTo(() => _editSolubilityParameterPresenter.EditedFormula).Returns(_editedTableFormula);

            A.CallTo(() => _parameterTask.UpdateTableFormulaWithoutBuildingBlockChange(_parameter, _editedTableFormula)).Returns(_updateTableFormulaCommand);
        }
        protected override void Context()
        {
            base.Context();
            _updateTableFormulaCommand        = A.Fake <ICommand>();
            _editedTableFormula               = new TableFormula();
            _editSolubilityParameterPresenter = A.Fake <IEditTableSolubilityParameterPresenter>();
            _parameter = DomainHelperForSpecs.ConstantParameterWithValue().WithName("SOL");
            A.CallTo(() => _applicationController.Start <IEditTableSolubilityParameterPresenter>()).Returns(_editSolubilityParameterPresenter);

            A.CallTo(() => _editSolubilityParameterPresenter.Edit(_parameter)).Returns(true);
            A.CallTo(() => _editSolubilityParameterPresenter.EditedFormula).Returns(_editedTableFormula);

            A.CallTo(() => _compoundAlternativeTask.SetAlternativeParameterTable(_parameter, _editedTableFormula)).Returns(_updateTableFormulaCommand);
        }