public CertificationSpecialty(string name, CertificationBoard board)
 {
     if (board == null)
     {
         throw new ArgumentNullException("board");
     }
     CertificationBoard = board;
     SetName(name);
     IsEnabled = true;
 }
예제 #2
0
 /// <summary>
 /// Adds the certification board.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <returns></returns>
 public CertificationBoard AddCertificationBoard(string name)
 {
     if (CertificationBoards.SingleOrDefault(b => b.Name == name) != null)
     {
         throw new BusinessException(string.Format(CultureInfo.CurrentCulture, "Certification Agency already contains a Certification Board named {0}", name));
     }
     var certificationBoard = new CertificationBoard(name, this);
     CertificationBoards.Add(certificationBoard);
     return certificationBoard;
 }
        private CertificationSpecialty CreateCertificationSpecialty()
        {
            _certificationAgency = new CertificationAgency("Big Agency");
            _certificationBoard = _certificationAgency.AddCertificationBoard("Medium Board");
            _certificationSpecialty = _certificationBoard.AddCertificationSpecialty("Precise Specialty");

            return _certificationSpecialty;
        }
예제 #4
0
        private CertificationSpecialty CreateCertificationSpecialty(string specialtyName)
        {
            _certificationAgency = new CertificationAgency("Big Agency");
            _certificationBoard = _certificationAgency.AddCertificationBoard("Medium Board");
            _certificationSpecialty = _certificationBoard.AddCertificationSpecialty(specialtyName);

            return _certificationSpecialty;
        }