protected override void Context()
 {
     base.Context();
     _combination = new CalculationMethodCombination(new List <CalculationMethodWithCompoundName>());
     sut.Initialize(_parameterIdentification, 0, _combination, isSingleCategory: true);
     A.CallTo(() => _clonedSimulation.CompoundNames).Returns(new[] { "compound1" });
 }
コード例 #2
0
        protected override void Context()
        {
            _runMode = new CategorialParameterIdentificationRunMode();
            _calculationMethodWithCompoundNames = new List <CalculationMethodWithCompoundName>
            {
                new CalculationMethodWithCompoundName(new CalculationMethod {
                    Category = "category1", DisplayName = "method1"
                }, "compound1"),
                new CalculationMethodWithCompoundName(new CalculationMethod {
                    Category = "category2", DisplayName = "method2"
                }, "compound1")
            };
            _aCombination = new CalculationMethodCombination(_calculationMethodWithCompoundNames);

            _displayNameProvider = A.Fake <IDisplayNameProvider>();
            sut = new CategorialParameterIdentificationDescriptionCreator(_displayNameProvider);
            A.CallTo(() => _displayNameProvider.DisplayNameFor(A <Category <CalculationMethod> > ._)).ReturnsLazily((object category) => category.DowncastTo <Category <CalculationMethod> >().Name);
        }