public CalculationMethodSelectionPresenterForSimulation(
     ICalculationMethodSelectionViewForSimulation view,
     ICalculationMethodToCategoryCalculationMethodDTOMapper mapper,
     ICompoundCalculationMethodCategoryRepository compoundCalculationMethodCategoryRepository)
     : base(view, mapper, compoundCalculationMethodCategoryRepository)
 {
 }
예제 #2
0
 protected CalculationMethodSelectionPresenter(
     TView view,
     ICalculationMethodToCategoryCalculationMethodDTOMapper mapper,
     ICompoundCalculationMethodCategoryRepository compoundCalculationMethodCategoryRepository)
     : base(view)
 {
     _mapper = mapper;
     _compoundCalculationMethodCategoryRepository = compoundCalculationMethodCategoryRepository;
     _view.Caption = PKSimConstants.UI.CalculationMethods;
 }
예제 #3
0
        protected override void Context()
        {
            _view                   = A.Fake <ICalculationMethodSelectionViewForCompound>();
            _mapper                 = A.Fake <ICalculationMethodToCategoryCalculationMethodDTOMapper>();
            _repository             = A.Fake <ICompoundCalculationMethodCategoryRepository>();
            _calculationMethodsTask = A.Fake <IPKSimCalculationMethodsTask>();

            sut = new CalculationMethodSelectionPresenterForCompound(_view, _mapper, _repository, _calculationMethodsTask);
            sut.InitializeWith(A.Fake <ICommandCollector>());
        }
        protected override void Context()
        {
            _repository = A.Fake <ICompoundCalculationMethodCategoryRepository>();
            _view       = A.Fake <ICalculationMethodSelectionViewForSimulation>();
            _mapper     = A.Fake <ICalculationMethodToCategoryCalculationMethodDTOMapper>();

            sut = new CalculationMethodSelectionPresenterForSimulation(_view, _mapper, _repository);
            _allCalculationMethodCategories = new List <CalculationMethodCategory>();
            A.CallTo(() => _repository.All()).Returns(_allCalculationMethodCategories);

            A.CallTo(() => _view.BindTo(A <IEnumerable <CategoryCalculationMethodDTO> > ._))
            .Invokes(x => _allDTOs = x.GetArgument <IEnumerable <CategoryCalculationMethodDTO> >(0).ToList());
        }
예제 #5
0
 public CompoundFactory(
     IObjectBaseFactory objectBaseFactory,
     IParameterContainerTask parameterContainerTask,
     IParameterAlternativeFactory parameterAlternativeFactory,
     IParameterGroupTask parameterGroupTask,
     ICompoundCalculationMethodCategoryRepository compoundCalculationMethodCategoryRepository)
 {
     _objectBaseFactory           = objectBaseFactory;
     _parameterContainerTask      = parameterContainerTask;
     _parameterAlternativeFactory = parameterAlternativeFactory;
     _parameterGroupTask          = parameterGroupTask;
     _compoundCalculationMethodCategoryRepository = compoundCalculationMethodCategoryRepository;
 }
예제 #6
0
 public CompoundMapper(ICompoundFactory compoundFactory, ICompoundProcessRepository compoundProcessRepository,
                       IBatchLogger batchLogger, ICloner cloner,
                       ICompoundCalculationMethodCategoryRepository calculationMethodCategoryRepository,
                       ICalculationMethodRepository calculationMethodRepository, ICompoundProcessTask compoundProcessTask, ISpeciesRepository speciesRepository)
 {
     _compoundFactory           = compoundFactory;
     _compoundProcessRepository = compoundProcessRepository;
     _batchLogger = batchLogger;
     _cloner      = cloner;
     _calculationMethodCategoryRepository = calculationMethodCategoryRepository;
     _calculationMethodRepository         = calculationMethodRepository;
     _compoundProcessTask = compoundProcessTask;
     _speciesRepository   = speciesRepository;
 }
예제 #7
0
 protected override void Context()
 {
     _default1 = new CalculationMethod {
         Name = "Default1", Category = "C1"
     };
     _default2 = new CalculationMethod {
         Name = "Default2", Category = "C2"
     };
     _category1 = new CalculationMethodCategory {
         Name = "C1", DefaultItem = _default1
     };
     _category2 = new CalculationMethodCategory {
         Name = "C2", DefaultItem = _default2
     };
     _compoundCalculationMethodCategoryRepository = A.Fake <ICompoundCalculationMethodCategoryRepository>();
     A.CallTo(() => _compoundCalculationMethodCategoryRepository.All()).Returns(new [] { _category1, _category2 });
     sut = new CompoundToCompoundPropertiesMapper(_compoundCalculationMethodCategoryRepository);
 }
예제 #8
0
 public Converter552To561(ICompoundCalculationMethodCategoryRepository compoundCalculationMethodCategoryRepository, IIndividualFactory individualFactory,
                          ICloner cloner, INeighborhoodFinalizer neighborhoodFinalizer, IContainerTask containerTask,
                          IPKSimXmlSerializerRepository serializerRepository, IReactionBuildingBlockCreator reactionBuildingBlockCreator,
                          IDiagramModelFactory diagramModelFactory, ICompoundProcessRepository compoundProcessRepository, IParameterSetUpdater parameterSetUpdater, IDialogCreator dialogCreator,
                          IRenalAgingCalculationMethodUpdater renalAgingCalculationMethodUpdater,
                          IIndividualUpdater individualUpdater)
 {
     _compoundCalculationMethodCategoryRepository = compoundCalculationMethodCategoryRepository;
     _individualFactory                  = individualFactory;
     _cloner                             = cloner;
     _neighborhoodFinalizer              = neighborhoodFinalizer;
     _containerTask                      = containerTask;
     _serializerRepository               = serializerRepository;
     _reactionBuildingBlockCreator       = reactionBuildingBlockCreator;
     _diagramModelFactory                = diagramModelFactory;
     _compoundProcessRepository          = compoundProcessRepository;
     _parameterSetUpdater                = parameterSetUpdater;
     _dialogCreator                      = dialogCreator;
     _renalAgingCalculationMethodUpdater = renalAgingCalculationMethodUpdater;
     _individualUpdater                  = individualUpdater;
 }
 public CalculationMethodSelectionPresenterForCompound(ICalculationMethodSelectionViewForCompound view, ICalculationMethodToCategoryCalculationMethodDTOMapper mapper, ICompoundCalculationMethodCategoryRepository compoundCalculationMethodCategoryRepository, IPKSimCalculationMethodsTask calculationMethodsTask)
     : base(view, mapper, compoundCalculationMethodCategoryRepository)
 {
     _calculationMethodsTask = calculationMethodsTask;
 }
예제 #10
0
 public CompoundToCompoundPropertiesMapper(ICompoundCalculationMethodCategoryRepository categoryRepository)
 {
     _categoryRepository = categoryRepository;
 }
 public CompoundCalculationMethodRepository(ICompoundCalculationMethodCategoryRepository calculationMethodCategoryRepository)
 {
     _calculationMethodCategoryRepository = calculationMethodCategoryRepository;
 }
예제 #12
0
        protected override void Context()
        {
            _compoundCalculationMethodCategoryRepository = A.Fake <ICompoundCalculationMethodCategoryRepository>();

            sut = new CompoundCalculationMethodRepository(_compoundCalculationMethodCategoryRepository);
        }