コード例 #1
0
 protected override void Context()
 {
     _kineticUpdaterSpecification = A.Fake <IInteractionKineticUpdaterSpecification>();
     A.CallTo(_kineticUpdaterSpecification).WithReturnType <bool>().Returns(false);
     _allKineticUpdaterSpecifications.Add(_kineticUpdaterSpecification);
     base.Context();
 }
コード例 #2
0
        protected override void Context()
        {
            _kineticUpdaterSpecification1 = A.Fake <IInteractionKineticUpdaterSpecification>();
            _kineticUpdaterSpecification2 = A.Fake <IInteractionKineticUpdaterSpecification>();
            A.CallTo(_kineticUpdaterSpecification1).WithReturnType <bool>().Returns(true);
            A.CallTo(_kineticUpdaterSpecification2).WithReturnType <bool>().Returns(true);
            _allKineticUpdaterSpecifications.Add(_kineticUpdaterSpecification1);
            _allKineticUpdaterSpecifications.Add(_kineticUpdaterSpecification2);
            base.Context();

            A.CallTo(() => _kineticUpdaterSpecification1.KcatDenominatorTerm(_inhibitedEnzyme, _drugName, _simulation)).Returns("A1/B1");
            A.CallTo(() => _kineticUpdaterSpecification1.KmNumeratorTerm(_inhibitedEnzyme, _drugName, _simulation)).Returns("C1/D1");
            A.CallTo(() => _kineticUpdaterSpecification1.KmDenominatorTerm(_inhibitedEnzyme, _drugName, _simulation)).Returns(string.Empty);

            A.CallTo(() => _kineticUpdaterSpecification2.KcatDenominatorTerm(_inhibitedEnzyme, _drugName, _simulation)).Returns(string.Empty);
            A.CallTo(() => _kineticUpdaterSpecification2.KmNumeratorTerm(_inhibitedEnzyme, _drugName, _simulation)).Returns("C2/D2");
            A.CallTo(() => _kineticUpdaterSpecification2.KmDenominatorTerm(_inhibitedEnzyme, _drugName, _simulation)).Returns("E2/D2");
        }