private ValidationMessage createValidationMessageForNullContainer(StartValueAndContainer startValueAndContainer, IBuildingBlock buildingBlock) { var moleculeStartValue = startValueAndContainer.MoleculeStartValue; return(buildValidationMessage(buildingBlock, moleculeStartValue, Validation.StartValueDefinedForContainerThatCannotBeResolved(moleculeStartValue.MoleculeName, moleculeStartValue.ContainerPath.PathAsString))); }
private static bool containerIsPhysical(StartValueAndContainer startValueAndContainer) { return(startValueAndContainer.Container != null && startValueAndContainer.Container.Mode == ContainerMode.Physical); }
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)); }