Пример #1
0
        public RecruitCardGroup(ServiceCard serviceCard,
                                FirstCardGroup firstCardGroup,
                                SecondCardGroup secondCardGroup,
                                ThirdCardGroup thirdCardGroup)
        {
            if (serviceCard == null)
            {
                throw new ArgumentNullException(nameof(serviceCard));
            }

            if (firstCardGroup == null)
            {
                throw new ArgumentNullException(nameof(firstCardGroup));
            }

            if (secondCardGroup == null)
            {
                throw new ArgumentNullException(nameof(secondCardGroup));
            }

            if (thirdCardGroup == null)
            {
                throw new ArgumentNullException(nameof(thirdCardGroup));
            }

            ServiceCard     = serviceCard;
            FirstCardGroup  = firstCardGroup;
            SecondCardGroup = secondCardGroup;
            ThirdCardGroup  = thirdCardGroup;
        }
Пример #2
0
        public RecruitCardGroup(string personalPhotoDirectoryPath)
        {
            if (string.IsNullOrWhiteSpace(personalPhotoDirectoryPath))
            {
                throw new ArgumentNullException(nameof(personalPhotoDirectoryPath));
            }

            ServiceCard     = new ServiceCard();
            FirstCardGroup  = new FirstCardGroup(personalPhotoDirectoryPath);
            SecondCardGroup = new SecondCardGroup();
            ThirdCardGroup  = new ThirdCardGroup();
        }