protected override void Context()
 {
     sut      = new UserDefinedPKParameter();
     _options = new PKCalculationOptions {
         TotalDrugMassPerBodyWeight = 20
     };
     _interval0 = new DosingInterval {
         DrugMassPerBodyWeight = 2
     };
     _interval1 = new DosingInterval {
         DrugMassPerBodyWeight = 3
     };
     _interval2 = new DosingInterval {
         DrugMassPerBodyWeight = 4
     };
     _interval3 = new DosingInterval {
         DrugMassPerBodyWeight = 5
     };
     _interval4 = new DosingInterval {
         DrugMassPerBodyWeight = 6
     };
     _options.AddInterval(_interval0);
     _options.AddInterval(_interval1);
     _options.AddInterval(_interval2);
     _options.AddInterval(_interval3);
     _options.AddInterval(_interval4);
 }
        public override void GlobalContext()
        {
            base.GlobalContext();
            _multipleDosingColumn = DataColumnLoader.GetDataColumnFrom("MultipleDosing_0_8_16");

            _pkOptions = new PKCalculationOptions
            {
                TotalDrugMassPerBodyWeight = 10,
            };
            _pkOptions.AddInterval(new DosingInterval {
                StartValue = 0, EndValue = 8, DrugMassPerBodyWeight = _firstDose
            });
            _pkOptions.AddInterval(new DosingInterval {
                StartValue = 8, EndValue = 16, DrugMassPerBodyWeight = _oneMinusLastDose
            });
            _pkOptions.AddInterval(new DosingInterval {
                StartValue = 16, EndValue = 48, DrugMassPerBodyWeight = _lastDose
            });

            _cmax_tD1_tD2 = new UserDefinedPKParameter {
                StartApplicationIndex = 0, EndApplicationIndex = 1, StandardPKParameter = StandardPKParameter.C_max, Name = "MyCmaxD1D2"
            };
            _cmax_tD1_tD2_DOSE_BW = new UserDefinedPKParameter {
                StartApplicationIndex = 0, EndApplicationIndex = 1, StandardPKParameter = StandardPKParameter.C_max, Name = "MyCmaxD1D2_Normalized", NormalizationFactor = _firstDose
            };
            _cmax_tD1_tD2_DOSE_BW_auto = new UserDefinedPKParameter {
                StartApplicationIndex = 0, EndApplicationIndex = 1, StandardPKParameter = StandardPKParameter.C_max_norm, Name = "MyCmaxD1D2_Normalized_auto"
            };

            _tmax_tD1_tD2 = new UserDefinedPKParameter {
                StartApplicationIndex = 0, EndApplicationIndex = 1, StandardPKParameter = StandardPKParameter.t_max, Name = "MyTmaxD1D2"
            };

            _cmax_t1_t2 = new UserDefinedPKParameter {
                StartTime = 0, EndTime = 8, StandardPKParameter = StandardPKParameter.C_max, Name = "MyCmaxT1T2"
            };
            _cmax_t1_t2_offset = new UserDefinedPKParameter {
                StartTime = 0, StartTimeOffset = 16, EndTime = 48, StandardPKParameter = StandardPKParameter.C_max, Name = "MyCmaxT1T2offset"
            };
            _cmax_t1_offset_no_end = new UserDefinedPKParameter {
                StartTime = 0, StartTimeOffset = 16, StandardPKParameter = StandardPKParameter.C_max, Name = "MyCmaxT1offset_no_end"
            };
            _tThreshold = new UserDefinedPKParameter {
                StartApplicationIndex = 0, StandardPKParameter = StandardPKParameter.Tthreshold, Name = "Threshold", ConcentrationThreshold = 4
            };
            _tThreshold_last = new UserDefinedPKParameter {
                StartApplicationIndex = 2, StandardPKParameter = StandardPKParameter.Tthreshold, Name = "Threshold_last", ConcentrationThreshold = 5
            };


            _allDynamicPkParameters = new[] { _cmax_tD1_tD2, _tmax_tD1_tD2, _cmax_t1_t2, _cmax_t1_t2_offset, _cmax_t1_offset_no_end, _cmax_tD1_tD2_DOSE_BW, _tThreshold, _tThreshold_last, _cmax_tD1_tD2_DOSE_BW_auto };
        }
        public override void GlobalContext()
        {
            base.GlobalContext();
            _multipleDosingColumn = DataColumnLoader.GetDataColumnFrom("MultipleDosing_0_8_16");

            _pkOptions = new PKCalculationOptions
            {
                TotalDrugMassPerBodyWeight = 10,
            };
            _pkOptions.AddInterval(new DosingInterval {
                StartValue = 0, EndValue = 8, DrugMassPerBodyWeight = _firstDose
            });
            _pkOptions.AddInterval(new DosingInterval {
                StartValue = 8, EndValue = 16, DrugMassPerBodyWeight = _oneMinusLastDose
            });
            _pkOptions.AddInterval(new DosingInterval {
                StartValue = 16, EndValue = 48, DrugMassPerBodyWeight = _lastDose
            });
        }