示例#1
0
        public void Run(string[] args)
        {
            var validationResult = validationService.GetValidationResult(args);

            if (!validationResult.IsValid)
            {
                output.WriteLine(validationResult.Description);
                return;
            }

            var photoResult = photoAlbumService.GetPhotosByAlbumId(validationResult.Result);

            var photoWriter = new PhotoWriter(output);

            photoWriter.WritePhotos(photoResult);
        }