public void SetUp() { Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; this.uri = new Uri("http://www.rheagroup.com"); this.cache = new ConcurrentDictionary <CDP4Common.Types.CacheKey, Lazy <Thing> >(); this.ratioScale = new RatioScale(Guid.NewGuid(), this.cache, this.uri); var valuedefLow = new EnumerationValueDefinition(Guid.NewGuid(), this.cache, this.uri); valuedefLow.ShortName = "low"; var valuedefMedium = new EnumerationValueDefinition(Guid.NewGuid(), this.cache, this.uri); valuedefMedium.ShortName = "medium"; this.booleanParameterType = new BooleanParameterType(Guid.NewGuid(), this.cache, this.uri); this.dateParameterType = new DateParameterType(Guid.NewGuid(), this.cache, this.uri); this.dateTimeParameterType = new DateTimeParameterType(Guid.NewGuid(), this.cache, this.uri); this.enumerationParameterType = new EnumerationParameterType(Guid.NewGuid(), this.cache, this.uri); this.enumerationParameterType.Name = "test"; this.enumerationParameterType.ValueDefinition.Add(valuedefLow); this.enumerationParameterType.ValueDefinition.Add(valuedefMedium); this.simpleQuantityKind = new SimpleQuantityKind(Guid.NewGuid(), this.cache, this.uri); this.simpleQuantityKind.PossibleScale.Add(this.ratioScale); this.simpleQuantityKind.DefaultScale = this.ratioScale; this.textParameterType = new TextParameterType(Guid.NewGuid(), this.cache, this.uri); this.timeOfDayParameterType = new TimeOfDayParameterType(Guid.NewGuid(), this.cache, this.uri); }
public void Setup() { RxApp.MainThreadScheduler = Scheduler.CurrentThread; this.navigation = new Mock <IThingDialogNavigationService>(); this.permissionService = new Mock <IPermissionService>(); this.session = new Mock <ISession>(); this.siteDir = new SiteDirectory(Guid.NewGuid(), null, this.uri); this.siteRdl = new SiteReferenceDataLibrary(Guid.NewGuid(), null, this.uri); this.siteDir.SiteReferenceDataLibrary.Add(this.siteRdl); var transactionContext = TransactionContextResolver.ResolveContext(this.siteDir); this.transaction = new ThingTransaction(transactionContext, null); this.session.Setup(x => x.RetrieveSiteDirectory()).Returns(this.siteDir); this.testEnumerationValueDefinition = new EnumerationValueDefinition(Guid.NewGuid(), null, null); var dal = new Mock <IDal>(); this.session.Setup(x => x.DalVersion).Returns(new Version(1, 1, 0)); this.session.Setup(x => x.Dal).Returns(dal.Object); dal.Setup(x => x.MetaDataProvider).Returns(new MetaDataProvider()); this.viewModel = new EnumerationValueDefinitionDialogViewModel(this.testEnumerationValueDefinition, this.transaction, this.session.Object, true, ThingDialogKind.Create, this.navigation.Object, this.derivedUnit); }
public void Setup() { RxApp.MainThreadScheduler = Scheduler.CurrentThread; this.permissionService = new Mock <IPermissionService>(); this.permissionService.Setup(x => x.CanRead(It.IsAny <Thing>())).Returns(true); this.permissionService.Setup(x => x.CanWrite(It.IsAny <Thing>())).Returns(true); this.serviceLocator = new Mock <IServiceLocator>(); this.navigation = new Mock <IThingDialogNavigationService>(); ServiceLocator.SetLocatorProvider(() => this.serviceLocator.Object); this.serviceLocator.Setup(x => x.GetInstance <IThingDialogNavigationService>()).Returns(this.navigation.Object); this.session = new Mock <ISession>(); this.session.Setup(x => x.PermissionService).Returns(this.permissionService.Object); var person = new Person(Guid.NewGuid(), null, null) { Container = this.siteDir }; this.session.Setup(x => x.ActivePerson).Returns(person); this.siteDir = new SiteDirectory(Guid.NewGuid(), null, null); this.siteDir.Person.Add(person); var rdl = new SiteReferenceDataLibrary(Guid.NewGuid(), null, null) { Name = "testRDL", ShortName = "test" }; this.enumerationParameterType = new EnumerationParameterType(Guid.NewGuid(), null, null) { Name = "enumerationParameterType", ShortName = "cat" }; var testValueDefinition = new EnumerationValueDefinition { Name = "definition1", ShortName = "def" }; this.enumerationParameterType.ValueDefinition.Add(testValueDefinition); this.siteDir.SiteReferenceDataLibrary.Add(rdl); var transactionContext = TransactionContextResolver.ResolveContext(this.siteDir); this.transaction = new ThingTransaction(transactionContext, null); this.session.Setup(x => x.RetrieveSiteDirectory()).Returns(this.siteDir); this.session.Setup(x => x.OpenReferenceDataLibraries).Returns(new HashSet <ReferenceDataLibrary>(this.siteDir.SiteReferenceDataLibrary)); var dal = new Mock <IDal>(); this.session.Setup(x => x.DalVersion).Returns(new Version(1, 1, 0)); this.session.Setup(x => x.Dal).Returns(dal.Object); dal.Setup(x => x.MetaDataProvider).Returns(new MetaDataProvider()); this.viewmodel = new EnumerationParameterTypeDialogViewModel(this.enumerationParameterType, this.transaction, this.session.Object, true, ThingDialogKind.Create, this.navigation.Object); }
/// <summary> /// Initializes a new instance of the <see cref="BudgetConfig"/> class /// </summary> /// <param name="elements">The root <see cref="ElementDefinition"/>s for which the budget is calculated</param> /// <param name="subSystemDef">The sub-system definition</param> /// <param name="parameterWithMargin">The parameter to used in the budget calculation</param> /// <param name="numberOfElementParameterType">The number of element parameter-type</param> /// <param name="systemLevel">The Parameter-type representing the system-level to use in the budget calculation by default</param> /// <param name="subsysLevelDef">The <see cref="EnumerationValueDefinition"/> representing a sub-system</param> /// <param name="equipmentLevelDef">The <see cref="EnumerationValueDefinition"/> representing an equipment</param> public BudgetConfig( IReadOnlyList <ElementDefinition> elements, IReadOnlyList <SubSystemDefinition> subSystemDef, BudgetParameterConfigBase parameterWithMargin, QuantityKind numberOfElementParameterType, EnumerationParameterType systemLevel, EnumerationValueDefinition subsysLevelDef, EnumerationValueDefinition equipmentLevelDef) { this.Elements = elements; this.NumberOfElementParameterType = numberOfElementParameterType; this.BudgetParameterConfig = parameterWithMargin; this.SubSystemDefinition = subSystemDef; this.SystemLevelToUse = systemLevel; this.SubSystemLevelEnum = subsysLevelDef; this.EquipmentLevelEnum = equipmentLevelDef; }
/// <summary> /// Execute the <see cref="ICommand"/> to create a <see cref="ParameterType"/> /// </summary> /// <typeparam name="TParameterType">A kind of <see cref="ParameterType"/></typeparam> /// <remarks> /// A new transaction is created to allow a <see cref="ParameterType"/> to be created "on the fly" /// </remarks> private void ExecuteCreateGenericParameterTypeCommand <TParameterType>() where TParameterType : ParameterType, new() { ParameterType parameterType; parameterType = new TParameterType(); parameterType.Name = this.SelectedRow.Identifiable.LongName; var enumDatatype = this.SelectedRow.Identifiable as DatatypeDefinitionEnumeration; if (enumDatatype != null) { var enumParameterType = new EnumerationParameterType { Name = enumDatatype.LongName }; foreach (var specifiedValue in enumDatatype.SpecifiedValues.OrderBy(x => x.Properties.Key)) { var enumerationDefinition = new EnumerationValueDefinition { Name = specifiedValue.LongName, ShortName = specifiedValue.Properties.OtherContent }; enumParameterType.ValueDefinition.Add(enumerationDefinition); } parameterType = enumParameterType; } var siteDirectory = this.Session.RetrieveSiteDirectory(); var transactionContext = TransactionContextResolver.ResolveContext(siteDirectory); var parameterTypeTransaction = new ThingTransaction(transactionContext); this.AddContainedThingToTransaction(parameterTypeTransaction, parameterType); var result = this.ThingDialogNavigationService.Navigate(parameterType, parameterTypeTransaction, this.Session, true, ThingDialogKind.Create, this.ThingDialogNavigationService); if (!result.HasValue || !result.Value) { return; } // refresh parameter type list and set the mapping to the new parameter type this.PopulateParameterTypes(); ((DatatypeDefinitionMappingRowViewModel)this.SelectedRow).FilterPossibleParameterTypes(); this.CastSelectedRow.MappedThing = this.ParameterTypes.Single(x => x.Iid == parameterType.Iid); }
/// <summary> /// Serialize the <see cref="EnumerationValueDefinition"/> /// </summary> /// <param name="enumerationValueDefinition">The <see cref="EnumerationValueDefinition"/> to serialize</param> /// <returns>The <see cref="JObject"/></returns> private JObject Serialize(EnumerationValueDefinition enumerationValueDefinition) { var jsonObject = new JObject(); jsonObject.Add("alias", this.PropertySerializerMap["alias"](enumerationValueDefinition.Alias.OrderBy(x => x, this.guidComparer))); jsonObject.Add("classKind", this.PropertySerializerMap["classKind"](Enum.GetName(typeof(CDP4Common.CommonData.ClassKind), enumerationValueDefinition.ClassKind))); jsonObject.Add("definition", this.PropertySerializerMap["definition"](enumerationValueDefinition.Definition.OrderBy(x => x, this.guidComparer))); jsonObject.Add("excludedDomain", this.PropertySerializerMap["excludedDomain"](enumerationValueDefinition.ExcludedDomain.OrderBy(x => x, this.guidComparer))); jsonObject.Add("excludedPerson", this.PropertySerializerMap["excludedPerson"](enumerationValueDefinition.ExcludedPerson.OrderBy(x => x, this.guidComparer))); jsonObject.Add("hyperLink", this.PropertySerializerMap["hyperLink"](enumerationValueDefinition.HyperLink.OrderBy(x => x, this.guidComparer))); jsonObject.Add("iid", this.PropertySerializerMap["iid"](enumerationValueDefinition.Iid)); jsonObject.Add("modifiedOn", this.PropertySerializerMap["modifiedOn"](enumerationValueDefinition.ModifiedOn)); jsonObject.Add("name", this.PropertySerializerMap["name"](enumerationValueDefinition.Name)); jsonObject.Add("revisionNumber", this.PropertySerializerMap["revisionNumber"](enumerationValueDefinition.RevisionNumber)); jsonObject.Add("shortName", this.PropertySerializerMap["shortName"](enumerationValueDefinition.ShortName)); jsonObject.Add("thingPreference", this.PropertySerializerMap["thingPreference"](enumerationValueDefinition.ThingPreference)); return(jsonObject); }
public void VerifyThatAListOfEnumerationValueDefinitionsIsConverted() { var enumeration = new EnumerationParameterType { Name = "Technology Readiness Level", ShortName = "TRL" }; var level1 = new EnumerationValueDefinition { Name = "1", ShortName = "1" }; var level2 = new EnumerationValueDefinition { Name = "2", ShortName = "2" }; enumeration.ValueDefinition.Add(level1); enumeration.ValueDefinition.Add(level2); var result = this.converter.Convert(enumeration.ValueDefinition, null, null, null); Assert.AreEqual("1 | 2", result); }
/// <summary> /// Initializes an instance of <see cref="BudgetConfig"/> from this <see cref="BudgetConfigDto"/> given the available <see cref="QuantityKind"/>, <see cref="EnumerationParameterType"/> and <see cref="Category"/> /// </summary> /// <param name="usedQuantityKinds">The available <see cref="QuantityKind"/></param> /// <param name="enumerationParameterTypes">The available <see cref="EnumerationParameterType"/></param> /// <param name="usedCategories">The available <see cref="Category"/></param> /// <returns>The <see cref="BudgetConfig"/></returns> public BudgetConfig ToBudgetConfig(IReadOnlyList <QuantityKind> usedQuantityKinds, IReadOnlyList <EnumerationParameterType> enumerationParameterTypes, IReadOnlyList <Category> usedCategories) { QuantityKind numberOfElementPt = null; EnumerationParameterType systemLevelPt = null; EnumerationValueDefinition subSystemLevelEnum = null; EnumerationValueDefinition equipmentLevelEnum = null; if (this.NumberOfElement.HasValue) { numberOfElementPt = usedQuantityKinds.FirstOrDefault(x => x.Iid == this.NumberOfElement.Value); } if (this.SystemLevel.HasValue) { systemLevelPt = enumerationParameterTypes.FirstOrDefault(x => x.Iid == this.SystemLevel.Value); if (this.SubSystemLevelEnum.HasValue && systemLevelPt != null) { subSystemLevelEnum = systemLevelPt.ValueDefinition.FirstOrDefault(x => x.Iid == this.SubSystemLevelEnum.Value); } if (this.EquipmentLevelEnum.HasValue && systemLevelPt != null) { equipmentLevelEnum = systemLevelPt.ValueDefinition.FirstOrDefault(x => x.Iid == this.EquipmentLevelEnum.Value);; } } // resolve Parameter-Configuration var massConfig = this.ParameterConfig as MassParameterConfigDto; QuantityKind configMarginPt = null; BudgetParameterConfigBase parameterConfigBase = null; if (massConfig != null) { var configPt = usedQuantityKinds.FirstOrDefault(x => x.Iid == massConfig.ParameterType); if (massConfig.MarginParameterType.HasValue) { configMarginPt = usedQuantityKinds.FirstOrDefault(x => x.Iid == massConfig.MarginParameterType.Value); } var extraConfigList = new List <ExtraMassContributionConfiguration>(); foreach (var extraContributionDto in massConfig.ExtraContribution) { QuantityKind extraContributionMarginPt = null; var extraContributionPt = usedQuantityKinds.FirstOrDefault(x => x.Iid == extraContributionDto.ParameterType); if (extraContributionDto.MarginParameterType.HasValue) { extraContributionMarginPt = usedQuantityKinds.FirstOrDefault(x => x.Iid == extraContributionDto.MarginParameterType.Value); } var extraContributionCategories = new List <Category>(); foreach (var categoryId in extraContributionDto.Categories) { var category = usedCategories.FirstOrDefault(x => x.Iid == categoryId); if (category != null) { extraContributionCategories.Add(category); } } var extraContributionConfig = new ExtraMassContributionConfiguration(extraContributionCategories, extraContributionPt, extraContributionMarginPt); extraConfigList.Add(extraContributionConfig); } parameterConfigBase = new MassBudgetParameterConfig(new BudgetParameterMarginPair(configPt, configMarginPt), extraConfigList); } // resolve Parameter-Configuration var genericConfig = this.ParameterConfig as GenericParameterConfigDto; if (genericConfig != null) { var configPt = usedQuantityKinds.FirstOrDefault(x => x.Iid == genericConfig.ParameterType); if (genericConfig.MarginParameterType.HasValue) { configMarginPt = usedQuantityKinds.FirstOrDefault(x => x.Iid == genericConfig.MarginParameterType.Value); } parameterConfigBase = new GenericBudgetParameterConfig(new BudgetParameterMarginPair(configPt, configMarginPt)); } // resolve sub-systems var subSystemDef = new List <SubSystemDefinition>(); foreach (var subSystemDefinitionDto in this.SubSystemDefinition) { var subSysCat = new List <Category>(); var equipmentCat = new List <Category>(); foreach (var catId in subSystemDefinitionDto.Categories) { var category = usedCategories.FirstOrDefault(x => x.Iid == catId); if (category != null) { subSysCat.Add(category); } } foreach (var catId in subSystemDefinitionDto.ElementCategories) { var category = usedCategories.FirstOrDefault(x => x.Iid == catId); if (category != null) { equipmentCat.Add(category); } } subSystemDef.Add(new SubSystemDefinition(subSysCat, equipmentCat)); } return(new BudgetConfig(null, subSystemDef, parameterConfigBase, numberOfElementPt, systemLevelPt, subSystemLevelEnum, equipmentLevelEnum)); }
public void Setup() { this.permissionService = new Mock <IPermissionService>(); this.permissionService.Setup(x => x.CanWrite(It.IsAny <ClassKind>(), It.IsAny <Thing>())).Returns(true); this.thingDialognavigationService = new Mock <IThingDialogNavigationService>(); this.session = new Mock <ISession>(); this.session.Setup(x => x.PermissionService).Returns(this.permissionService.Object); this.stateList = new ActualFiniteStateList(Guid.NewGuid(), null, this.uri); this.state1 = new PossibleFiniteState(Guid.NewGuid(), null, this.uri) { Name = "state1" }; this.state2 = new PossibleFiniteState(Guid.NewGuid(), null, this.uri) { Name = "state2" }; this.posStateList = new PossibleFiniteStateList(Guid.NewGuid(), null, this.uri); this.posStateList.PossibleState.Add(this.state1); this.posStateList.PossibleState.Add(this.state2); this.posStateList.DefaultState = this.state1; this.actualState1 = new ActualFiniteState(Guid.NewGuid(), null, this.uri) { PossibleState = new List <PossibleFiniteState> { this.state1 }, Kind = ActualFiniteStateKind.MANDATORY }; this.actualState2 = new ActualFiniteState(Guid.NewGuid(), null, this.uri) { PossibleState = new List <PossibleFiniteState> { this.state2 }, Kind = ActualFiniteStateKind.MANDATORY }; this.stateList.ActualState.Add(this.actualState1); this.stateList.ActualState.Add(this.actualState2); this.stateList.PossibleFiniteStateList.Add(this.posStateList); this.option1 = new Option(Guid.NewGuid(), null, this.uri) { Name = "option1" }; this.option2 = new Option(Guid.NewGuid(), null, this.uri) { Name = "option2" }; this.qqParamType = new SimpleQuantityKind(Guid.NewGuid(), null, this.uri) { Name = "PTName", ShortName = "PTShortName" }; this.enum1 = new EnumerationValueDefinition(Guid.NewGuid(), null, this.uri) { Name = "enum1" }; this.enum2 = new EnumerationValueDefinition(Guid.NewGuid(), null, this.uri) { Name = "enum2" }; this.enumPt = new EnumerationParameterType(Guid.NewGuid(), null, this.uri); this.enumPt.ValueDefinition.Add(this.enum1); this.enumPt.ValueDefinition.Add(this.enum2); this.cptType = new CompoundParameterType(Guid.NewGuid(), null, this.uri) { Name = "APTName", ShortName = "APTShortName" }; this.cptType.Component.Add(new ParameterTypeComponent(Guid.NewGuid(), null, this.uri) { Iid = Guid.NewGuid(), ParameterType = this.qqParamType, ShortName = "c1" }); this.cptType.Component.Add(new ParameterTypeComponent(Guid.NewGuid(), null, this.uri) { Iid = Guid.NewGuid(), ParameterType = this.enumPt, ShortName = "c2" }); this.activeDomain = new DomainOfExpertise(Guid.NewGuid(), null, this.uri) { Name = "active", ShortName = "active" }; this.someotherDomain = new DomainOfExpertise(Guid.NewGuid(), null, this.uri) { Name = "other", ShortName = "other" }; this.parameter = new Parameter(Guid.NewGuid(), null, this.uri) { Owner = this.activeDomain, ParameterType = this.qqParamType }; this.cptParameter = new Parameter(Guid.NewGuid(), null, this.uri) { Owner = this.activeDomain, ParameterType = this.cptType, IsOptionDependent = true, StateDependence = this.stateList }; this.cptParameter.ValueSet.Add(this.GetNewParameterValueSet(this.option1, this.stateList.ActualState.First())); this.cptParameter.ValueSet.Add(this.GetNewParameterValueSet(this.option1, this.stateList.ActualState.Last())); this.cptParameter.ValueSet.Add(this.GetNewParameterValueSet(this.option2, this.stateList.ActualState.First())); this.cptParameter.ValueSet.Add(this.GetNewParameterValueSet(this.option2, this.stateList.ActualState.Last())); this.elementDefinition = new ElementDefinition(Guid.NewGuid(), null, this.uri) { Owner = this.activeDomain }; this.elementDefinitionForUsage1 = new ElementDefinition(Guid.NewGuid(), null, this.uri); this.elementUsage1 = new ElementUsage(Guid.NewGuid(), null, this.uri) { ElementDefinition = this.elementDefinitionForUsage1 }; this.elementDefinition.ContainedElement.Add(this.elementUsage1); this.elementDefinitionForUsage1.Parameter.Add(this.parameter); this.elementDefinitionForUsage1.Parameter.Add(this.cptParameter); this.iteration = new Iteration(Guid.NewGuid(), null, this.uri); this.iteration.Element.Add(this.elementDefinition); this.iteration.Element.Add(this.elementDefinitionForUsage1); this.iteration.Option.Add(this.option1); this.iteration.Option.Add(this.option2); this.model = new EngineeringModel(Guid.NewGuid(), null, this.uri); this.model.Iteration.Add(this.iteration); this.person = new Person(Guid.NewGuid(), null, this.uri) { GivenName = "test", Surname = "test" }; this.participant = new Participant(Guid.NewGuid(), null, this.uri) { Person = this.person, SelectedDomain = this.activeDomain }; this.session.Setup(x => x.ActivePerson).Returns(this.person); this.modelsetup = new EngineeringModelSetup(Guid.NewGuid(), null, this.uri); this.modelsetup.Participant.Add(this.participant); this.model.EngineeringModelSetup = this.modelsetup; this.session.Setup(x => x.PermissionService).Returns(this.permissionService.Object); this.permissionService.Setup(x => x.CanWrite(It.IsAny <Thing>())).Returns(true); this.assembler = new Assembler(this.uri); this.session.Setup(x => x.Assembler).Returns(this.assembler); this.session.Setup(x => x.OpenIterations).Returns(new Dictionary <Iteration, Tuple <DomainOfExpertise, Participant> >()); }
/// <summary> /// Persist the <see cref="EnumerationValueDefinition"/> containment tree to the ORM layer. Update if it already exists. /// This is typically used during the import of existing data to the Database. /// </summary> /// <param name="transaction"> /// The current <see cref="NpgsqlTransaction"/> to the database. /// </param> /// <param name="partition"> /// The database partition (schema) where the requested resource will be stored. /// </param> /// <param name="enumerationValueDefinition"> /// The <see cref="EnumerationValueDefinition"/> instance to persist. /// </param> /// <returns> /// True if the persistence was successful. /// </returns> private bool UpsertContainment(NpgsqlTransaction transaction, string partition, EnumerationValueDefinition enumerationValueDefinition) { var results = new List <bool>(); foreach (var alias in this.ResolveFromRequestCache(enumerationValueDefinition.Alias)) { results.Add(this.AliasService.UpsertConcept(transaction, partition, alias, enumerationValueDefinition)); } foreach (var definition in this.ResolveFromRequestCache(enumerationValueDefinition.Definition)) { results.Add(this.DefinitionService.UpsertConcept(transaction, partition, definition, enumerationValueDefinition)); } foreach (var hyperLink in this.ResolveFromRequestCache(enumerationValueDefinition.HyperLink)) { results.Add(this.HyperLinkService.UpsertConcept(transaction, partition, hyperLink, enumerationValueDefinition)); } return(results.All(x => x)); }
/// <summary> /// Add an Value Definition row view model to the list of <see cref="ValueDefinition"/> /// </summary> /// <param name="valueDefinition"> /// The <see cref="ValueDefinition"/> that is to be added /// </param> private EnumerationValueDefinitionRowViewModel AddValueDefinitionRowViewModel(EnumerationValueDefinition valueDefinition) { return(new EnumerationValueDefinitionRowViewModel(valueDefinition, this.Session, this)); }
/// <summary> /// Initializes a new instance of the <see cref="EnumerationValueDefinitionDialogViewModel" /> class. /// </summary> /// <param name="enumerationValueDefinition"> /// The text Parameter Type. /// </param> /// <param name="transaction"> /// The <see cref="ThingTransaction" /> that contains the log of recorded changes. /// </param> /// <param name="session"> /// The <see cref="ISession" /> in which the current <see cref="Thing" /> is to be added or updated /// </param> /// <param name="isRoot"> /// Assert if this <see cref="EnumerationValueDefinitionDialogViewModel" /> is the root of all /// <see cref="IThingDialogViewModel" /> /// </param> /// <param name="dialogKind"> /// The kind of operation this <see cref="EnumerationValueDefinitionDialogViewModel" /> performs /// </param> /// <param name="thingDialogNavigationService"> /// The <see cref="IThingDialogNavigationService" /> that is used to navigate to a dialog of a specific /// <see cref="Thing" />. /// </param> /// <param name="container"> /// The <see cref="Thing" /> that contains the created <see cref="Thing" /> in this Dialog /// </param> /// <param name="chainOfContainers"> /// The optional chain of containers that contains the <paramref name="container" /> argument /// </param> /// <exception cref="ArgumentException"> /// The container must be of type <see cref="ReferenceDataLibrary" />. /// </exception> public EnumerationValueDefinitionDialogViewModel(EnumerationValueDefinition enumerationValueDefinition, IThingTransaction transaction, ISession session, bool isRoot, ThingDialogKind dialogKind, IThingDialogNavigationService thingDialogNavigationService, Thing container = null, IEnumerable <Thing> chainOfContainers = null) : base(enumerationValueDefinition, transaction, session, isRoot, dialogKind, thingDialogNavigationService, container, chainOfContainers) { }