Exemplo n.º 1
0
        protected override Task Context()
        {
            _entitiesInContainerRetriever = A.Fake <IEntitiesInContainerRetriever>();
            _logger = A.Fake <ILogger>();
            sut     = new OutputSelectionsMapper(_entitiesInContainerRetriever, _logger);

            _quantitySelection1 = new QuantitySelection("PATH1", QuantityType.Drug);
            _quantitySelection2 = new QuantitySelection("PATH2", QuantityType.Observer);

            _outputSelections = new OutputSelections();
            _outputSelections.AddOutput(_quantitySelection1);
            _outputSelections.AddOutput(_quantitySelection2);

            _simulation    = new IndividualSimulation();
            _allQuantities = new PathCacheForSpecs <IQuantity>();

            A.CallTo(() => _entitiesInContainerRetriever.QuantitiesFrom(_simulation)).Returns(_allQuantities);

            return(Task.FromResult(true));
        }
Exemplo n.º 2
0
        protected override void Context()
        {
            base.Context();
            _cloner  = A.Fake <ICloneManager>();
            _output1 = new QuantitySelection("A", QuantityType.Drug);
            _output2 = new QuantitySelection("B", QuantityType.Complex);

            sut.AddOutput(_output1);
            _newOutputSelection = new OutputSelections();
            _newOutputSelection.AddOutput(_output2);
        }