public PostDiveStageStepInfo(IDiveParametersResultModel diveParametersModel,
                              IDiveModel diveModel,
                              IDiveStepModel diveStep,
                              IGasMixtureModel gasMixture,
                              IGasManagementModel gasManagement,
                              List <double> toleratedAmbientPressures)
 {
     _diveParametersModel       = diveParametersModel;
     _diveModel                 = diveModel;
     _diveStep                  = diveStep;
     _gasMixture                = gasMixture;
     _gasManagement             = gasManagement;
     _toleratedAmbientPressures = toleratedAmbientPressures;
 }
Beispiel #2
0
        public DiveParametersResultModel UpdateUsedDiveParameters(IDiveStepModel diveStep,
                                                                  IGasMixtureModel selectedGasMixture, IGasManagementModel gasManagementModel)
        {
            var diveParameters = new DiveParametersResultModel();

            var stepInfo = new PostDiveStageStepInfo(diveParameters, _diveModel, diveStep, selectedGasMixture,
                                                     gasManagementModel, GetToleratedAmbientPressures().ToList());

            stepInfo.RunStage();

            return(diveParameters);
        }