示例#1
0
        public void Main(User user, UserChangeNameRequest request)
        {
            if (string.IsNullOrEmpty(request.Name))
            {
                throw new ArgumentException("요청에 포함된 Name이 null이거나 빈 문자열임");
            }

            user.ChangeName(request.Name);
        }
示例#2
0
        public void Main(User user, UserChangeNameRequest request)
        {
            if (string.IsNullOrEmpty(request.Name))
            {
                throw new ArgumentException("リクエストのNameがnullまたは空です。");
            }

            user.ChangeName(request.Name);
        }