Exemple #1
0
 /// <summary>
 /// A Set of DomainModelDefinitions will be passed and used to initialize the DomainModel Instance that is created
 ///       in the Build() method
 /// </summary>
 /// <param name="domainModelDefList"></param>
 public void AddDomainModelDefinitionsList(IEnumerable <DomainModelDefinitions> domainModelDefList)
 {
     EnsureDomainModelIsNotNull();
     domainModelDefList.ForEach(x => _domainModel.AddDomainModelDefinitions(x));
 }
Exemple #2
0
 /// <summary>
 /// Constructor that takes a set of DomainModelDefinitions to initialize it values
 /// </summary>
 /// <param name="domainModelDefinitions"></param>
 public DomainModelBuilder(IEnumerable <DomainModelDefinitions> domainModelDefinitions)
 {
     _domainModel = new DomainModel();
     domainModelDefinitions.ForEach(x => _domainModel.AddDomainModelDefinitions(x));
 }