Example #1
0
 public static SsdSetState Create(SsdSetBase ssdSet)
 {
     if (ssdSet == null)
     {
         throw new ArgumentNullException("ssdSet");
     }
     return(new SsdSetState(ssdSet.Id)
     {
         _createOn = ssdSet.CreateOn
     }.InternalModify(ssdSet));
 }
Example #2
0
        internal SsdSetState InternalModify(SsdSetBase ssdSet)
        {
            if (ssdSet == null)
            {
                throw new ArgumentNullException("ssdSet");
            }
            _name        = ssdSet.Name;
            _isEnabled   = ssdSet.IsEnabled;
            _ssdCard     = ssdSet.SsdCard;
            _description = ssdSet.Description;

            return(this);
        }