protected override void Context()
        {
            _compound1 = new Compound().WithId("1").WithName("Compound1");
            _compound2 = new Compound().WithId("2").WithName("Compound2");

            _simulation = new IndividualSimulation {
                Properties = new SimulationProperties()
            };
            _simulation.AddUsedBuildingBlock(new UsedBuildingBlock("Temp1", PKSimBuildingBlockType.Compound)
            {
                BuildingBlock = _compound1
            });
            _simulation.AddUsedBuildingBlock(new UsedBuildingBlock("Temp2", PKSimBuildingBlockType.Compound)
            {
                BuildingBlock = _compound2
            });

            _compoundPropertiesMapper = A.Fake <ICompoundToCompoundPropertiesMapper>();
            A.CallTo(() => _compoundPropertiesMapper.MapFrom(A <Compound> ._)).ReturnsLazily(x => new CompoundProperties {
                Compound = x.GetArgument <Compound>(0)
            });
            sut = new CompoundPropertiesUpdater(_compoundPropertiesMapper);
        }
 public CompoundPropertiesUpdater(ICompoundToCompoundPropertiesMapper compoundPropertiesMapper)
 {
     _compoundPropertiesMapper = compoundPropertiesMapper;
 }