protected override void Context()
        {
            base.Context();
            var moleculeStartValuesBuildingBlock1 = new MoleculeStartValuesBuildingBlock().WithName("Tada");
            var moleculeStartValueA = new MoleculeStartValue().WithName("MSVa");

            moleculeStartValueA.ContainerPath = new ObjectPath("Root", "Liver", "Plasma");
            var moleculeStartValueB = new MoleculeStartValue().WithName("MSVb");

            moleculeStartValueB.ContainerPath = new ObjectPath("Root", "Liver", "Plasma");
            moleculeStartValuesBuildingBlock1.Add(moleculeStartValueA);
            moleculeStartValuesBuildingBlock1.Add(moleculeStartValueB);

            var moleculeStartValuesBuildingBlock2 = new MoleculeStartValuesBuildingBlock().WithName("Tada");

            moleculeStartValueA = new MoleculeStartValue().WithName("MSVa");
            moleculeStartValueA.ContainerPath = new ObjectPath("Root", "Liver", "Plasma");
            moleculeStartValueB = new MoleculeStartValue().WithName("MSVb");
            moleculeStartValueB.ContainerPath = new ObjectPath("Root", "Liver", "Cell");

            moleculeStartValuesBuildingBlock2.Add(moleculeStartValueA);
            moleculeStartValuesBuildingBlock2.Add(moleculeStartValueB);

            _object1 = moleculeStartValuesBuildingBlock1;
            _object2 = moleculeStartValuesBuildingBlock2;
        }
        protected override void Context()
        {
            base.Context();
            var moleculeStartValuesBuildingBlock1 = new MoleculeStartValuesBuildingBlock().WithName("Tada");
            var moleculeStartValueA = new MoleculeStartValue().WithName("MSVa");

            moleculeStartValueA.ContainerPath = new ObjectPath("Root", "Liver", "Plasma");
            var moleculeStartValueB = new MoleculeStartValue().WithName("MSVb");

            moleculeStartValueB.ContainerPath = new ObjectPath("Root", "Liver", "Plasma");
            moleculeStartValuesBuildingBlock1.Add(moleculeStartValueA);
            moleculeStartValuesBuildingBlock1.Add(moleculeStartValueB);


            var moleculeStartValuesBuildingBlock2 = new MoleculeStartValuesBuildingBlock().WithName("Toto");

            moleculeStartValueA = new MoleculeStartValue().WithName("MSVa");
            moleculeStartValueA.ContainerPath = new ObjectPath("Root", "Liver", "Plasma");
            moleculeStartValueB = new MoleculeStartValue().WithName("MSVb");
            moleculeStartValueB.ContainerPath = new ObjectPath("Root", "Liver", "Plasma");

            moleculeStartValuesBuildingBlock2.Add(moleculeStartValueA);
            moleculeStartValuesBuildingBlock2.Add(moleculeStartValueB);

            _object1 = moleculeStartValuesBuildingBlock1;
            _object2 = moleculeStartValuesBuildingBlock2;
            _comparerSettings.OnlyComputingRelevant = false;
        }
Esempio n. 3
0
        protected override void Context()
        {
            base.Context();
            _startValuesBuildingBlock = new MoleculeStartValuesBuildingBlock();
            _importTables             = new MsvDataTableProvider().ImportTables();
            _importTables.Rows[0][4]  = string.Empty;
            _importTables.Rows[0][3]  = string.Empty;

            _startValuesBuildingBlock.Add(new MoleculeStartValue {
                ContainerPath = ContainerPathFromDataTableRow(_importTables, 0), Name = "Drug", StartValue = 9.0
            });
        }
Esempio n. 4
0
        protected override void Context()
        {
            base.Context();

            // We'll need a real building block for this test so that it will return null when asked for a start value from a path
            _startValuesBuildingBlock = new MoleculeStartValuesBuildingBlock();

            _tables = new MsvDataTableProvider().ImportTables();

            _startValuesBuildingBlock.Add(new MoleculeStartValue {
                Name = "Drug", ContainerPath = ContainerPathFromDataTableRow(_tables, 0), StartValue = 9.0
            });
            _tables.Rows[0][3] = string.Empty;
        }
Esempio n. 5
0
        protected override void Context()
        {
            base.Context();
            _dimension1 = new Dimension(new BaseDimensionRepresentation {
                TimeExponent = 1
            }, "Time", "min");
            _myDefaultUnit         = _dimension1.AddUnit("h", 60, 0);
            _topContainer          = new Container();
            _parameter             = new Parameter().WithDimension(_dimension1);
            _parameter.DisplayUnit = _dimension1.DefaultUnit;
            _topContainer.Add(_parameter);
            A.CallTo(() => _displayUnitRetriever.PreferredUnitFor(_parameter)).Returns(_myDefaultUnit);

            _moleculeStartValueBuildingBlock = new MoleculeStartValuesBuildingBlock();
            _moleculeStartValue = new MoleculeStartValue {
                Path = new ObjectPath(new[] { "A", "B", "Molecule" }), Dimension = _dimension1
            };
            _moleculeStartValue.DisplayUnit = _dimension1.DefaultUnit;
            _moleculeStartValueBuildingBlock.Add(_moleculeStartValue);
            A.CallTo(() => _displayUnitRetriever.PreferredUnitFor(_moleculeStartValue)).Returns(_myDefaultUnit);
        }