public DeviceRegistrationRequest(Guid applicationId, LiveDevice device)
            : this()
        {
            if (null == device)
            {
                throw new ArgumentNullException("device");
            }

            ClientInfo = new DeviceRegistrationClientInfo()
            {
                ApplicationId = applicationId, Version = "1.0"
            };
            Authentication = new DeviceRegistrationAuthentication()
            {
                MemberName = device.User.DeviceId,
                Password   = device.User.DecryptedPassword
            };
        }
 public DeviceRegistrationRequest(Guid applicationId, LiveDevice device)
     : this()
 {
     if (device == null)
     {
         throw new ArgumentNullException("device");
     }
     var info = new DeviceRegistrationClientInfo
         {
             ApplicationId = applicationId,
             Version = "1.0"
         };
     ClientInfo = info;
     var authentication = new DeviceRegistrationAuthentication
         {
             MemberName = device.User.DeviceId,
             Password = device.User.DecryptedPassword
         };
     Authentication = authentication;
 }