Esempio n. 1
0
        internal DsdRoleState InternalModify(DsdRoleBase dsdRole)
        {
            if (dsdRole == null)
            {
                throw new ArgumentNullException("dsdRole");
            }
            _roleId   = dsdRole.RoleId;
            _dsdSetId = dsdRole.DsdSetId;

            return(this);
        }
Esempio n. 2
0
 public static DsdRoleState Create(DsdRoleBase dsdRole)
 {
     if (dsdRole == null)
     {
         throw new ArgumentNullException("dsdRole");
     }
     return(new DsdRoleState(dsdRole.Id)
     {
         _createOn = dsdRole.CreateOn
     }.InternalModify(dsdRole));
 }