Exemplo n.º 1
0
        private ValidationMessage createValidationMessageForNullContainer(StartValueAndContainer startValueAndContainer, IBuildingBlock buildingBlock)
        {
            var moleculeStartValue = startValueAndContainer.MoleculeStartValue;

            return(buildValidationMessage(buildingBlock, moleculeStartValue,
                                          Validation.StartValueDefinedForContainerThatCannotBeResolved(moleculeStartValue.MoleculeName,
                                                                                                       moleculeStartValue.ContainerPath.PathAsString)));
        }
Exemplo n.º 2
0
 private static bool containerIsPhysical(StartValueAndContainer startValueAndContainer)
 {
     return(startValueAndContainer.Container != null && startValueAndContainer.Container.Mode == ContainerMode.Physical);
 }
Exemplo n.º 3
0
        private ValidationMessage createValidationMessageForMoleculesWithNonPhysicalContainer(StartValueAndContainer startValueAndContainer,
                                                                                              IBuildingBlock buildingBlock)
        {
            var moleculeStartValue = startValueAndContainer.MoleculeStartValue;

            return(buildValidationMessage(buildingBlock, moleculeStartValue,
                                          Validation.StartValueDefinedForNonPhysicalContainer(moleculeStartValue.MoleculeName, moleculeStartValue.ContainerPath.PathAsString)));
        }
 private void addMoleculeToContainer(IBuildConfiguration buildConfiguration, StartValueAndContainer startValueAndContainer, IMoleculeBuilder moleculeBuilder)
 {
     startValueAndContainer.Container.Add(_moleculeMapper.MapFrom(moleculeBuilder, buildConfiguration));
 }