예제 #1
0
 protected override void Context()
 {
     base.Context();
     _pKAnalysis           = PKAnalysisHelperForSpecs.GenerateIndividualPKAnalysis();
     _dataTable            = new DataTable();
     _individualPKAnalyses = new List <IndividualPKAnalysis> {
         new IndividualPKAnalysis(_dataColumn, _pKAnalysis)
     };
     A.CallTo(() => _individualPKAnalysisToDataTableMapper.MapFrom(_individualPKAnalyses, _curves, true)).Returns(_dataTable);
 }
        protected override void Context()
        {
            _pkParameterRepository        = A.Fake <IPKParameterRepository>();
            _representationInfoRepository = A.Fake <IRepresentationInfoRepository>();
            sut = new IndividualPKAnalysisToDataTableMapper(_pkParameterRepository, _representationInfoRepository);

            _curves = new List <ICurve>();
            var curve1      = A.Fake <ICurve>();
            var curve2      = A.Fake <ICurve>();
            var dataColumn1 = generateDataColumn();
            var dataColumn2 = generateDataColumn();

            A.CallTo(() => curve1.yData).Returns(dataColumn1);
            A.CallTo(() => curve2.yData).Returns(dataColumn2);
            _curves.Add(curve1);
            _curves.Add(curve2);

            _allPKAnalysis = new List <IndividualPKAnalysis> {
                new IndividualPKAnalysis(dataColumn1, PKAnalysisHelperForSpecs.GenerateIndividualPKAnalysis()), new IndividualPKAnalysis(dataColumn2, PKAnalysisHelperForSpecs.GenerateIndividualPKAnalysis())
            };
        }
예제 #3
0
 private PKAnalysis createPKAnalysis()
 {
     return(PKAnalysisHelperForSpecs.GenerateIndividualPKAnalysis());
 }