public void can_set_CertificationSpecialty()
        {
            //setup
            var providerCertificationSpecialty = CreateValidProviderCertificationSpecialty();

            var certificationAgency = new CertificationAgency("Different Agency");
            var certificationBoard = certificationAgency.AddCertificationBoard("Different Board");
            var certificationSpecialty = certificationBoard.AddCertificationSpecialty("Different Specialty");

            //act
            providerCertificationSpecialty.SetCertificationSpecialty(certificationSpecialty);

            //assert
            Assert.AreSame(certificationSpecialty, providerCertificationSpecialty.CertificationSpecialty);
        }
        private CertificationSpecialty CreateCertificationSpecialty()
        {
            _certificationAgency = new CertificationAgency("Big Agency");
            _certificationBoard = _certificationAgency.AddCertificationBoard("Medium Board");
            _certificationSpecialty = _certificationBoard.AddCertificationSpecialty("Precise Specialty");

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

            return _certificationSpecialty;
        }