public void PortV3Suceeds() { //absolute path is needed for the execution from a junit test var absolutePathInputModel1 = "PortV3\\SampleInput.xmi"; //load input models var repository = new ModelRepository(); var inputModel1 = repository.Resolve(absolutePathInputModel1); if (inputModel1 == null) { throw new FileNotFoundException("One of the Input Models was not found"); } var inputModelContainer = new InputModelContainer(inputModel1); var outputModelContainer = new OutputModelContainer(); var direction = SynchronizationDirection.LeftToRight; var changePropagartion = ChangePropagationMode.OneWay; var transformation = new PortV3Namespace.PortV3(); PortV3Namespace.PortV3.InputModelContainer = inputModelContainer; var context = transformation.Synchronize(transformation.SynchronizationRule<PortV3Namespace.PortV3.Model2ModelMainRule>(), ref inputModelContainer, ref outputModelContainer, direction, changePropagartion); }
public void PortV3Suceeds() { //absolute path is needed for the execution from a junit test var absolutePathInputModel1 = "PortV3\\SampleInput.xmi"; //load input models var repository = new ModelRepository(); var inputModel1 = repository.Resolve(absolutePathInputModel1); if (inputModel1 == null) { throw new FileNotFoundException("One of the Input Models was not found"); } var inputModelContainer = new InputModelContainer(inputModel1); var outputModelContainer = new OutputModelContainer(); var direction = SynchronizationDirection.LeftToRight; var changePropagartion = ChangePropagationMode.OneWay; var transformation = new PortV3Namespace.PortV3(); PortV3Namespace.PortV3.InputModelContainer = inputModelContainer; var context = transformation.Synchronize(transformation.SynchronizationRule <PortV3Namespace.PortV3.Model2ModelMainRule>(), ref inputModelContainer, ref outputModelContainer, direction, changePropagartion); }