Ejemplo n.º 1
0
        /// <summary>
        ///     Add a model collection
        /// </summary>
        /// <param name="models">List of the variables of the model</param>
        public void Add(ModelCollection models)
        {
            if (models == null)
            {
                throw new ArgumentNullException(nameof(models));
            }

            // Root Model
            Models.RootModel.Add(models.RootModel);
            if (models.Count() == 1)
            {
                return;
            }

            // SubModels
            for (var i = 1; i < models.Count(); i++)
            {
                Models.Add(models[i]);
            }
        }
Ejemplo n.º 2
0
 public void ModelCollectionTest()
 {
     Assert.AreEqual(3, _models.Count());
 }