Example #1
0
        private static COrdinal Map(this C_DV_ORDINAL model)
        {
            var ordinal = new COrdinal
            {
                ReferenceModelTypeName = model.rm_type_name,
                NodeId     = model.node_id,
                Occurences = model.occurrences.Map()
            };

            foreach (DV_ORDINAL dvOrdinal in model.list)
            {
                ordinal.Ordinals.Add(dvOrdinal.Map());
            }

            return(ordinal);
        }
Example #2
0
 public void ListsAreNotNull()
 {
     var instance = new COrdinal();
     Assert.IsNotNull(instance.Ordinals);
 }
Example #3
0
 public void IsValidValueThrowsException()
 {
     var instance = new COrdinal();
     var result = instance.IsValidValue(null);
 }
Example #4
0
 public void IsSubsetOfThrowsException()
 {
     var instance = new COrdinal();
     var result = instance.IsSubsetOf(null);
 }
Example #5
0
 public void DefaultValueThrowsException()
 {
     var instance = new COrdinal();
     var result = instance.DefaultValue();
 }
Example #6
0
 public void IsValidValueThrowsException()
 {
     var instance = new COrdinal();
     var result   = instance.IsValidValue(null);
 }
Example #7
0
 public void DefaultValueThrowsException()
 {
     var instance = new COrdinal();
     var result   = instance.DefaultValue();
 }
Example #8
0
 public void IsSubsetOfThrowsException()
 {
     var instance = new COrdinal();
     var result   = instance.IsSubsetOf(null);
 }
Example #9
0
        public void ListsAreNotNull()
        {
            var instance = new COrdinal();

            Assert.IsNotNull(instance.Ordinals);
        }