Esempio n. 1
0
        public void TestEngineeringEnrollmentt()
        {
            EngineeringFactory engFact = new EngineeringFactory();

            EnrollmentService cincinnati = new EnrollmentService(engFact);

            cincinnati.Enroll();
            Assert.True("Stanley" == cincinnati.ViewEnrolled()[0].Name);
            cincinnati.Deroll();
            Assert.True(0 == cincinnati.ViewEnrolled().Count);
        }
Esempio n. 2
0
        public void TestBusinessEnrollment()
        {
            BusinessFactory busFact = new BusinessFactory();

            EnrollmentService cincinnati = new EnrollmentService(busFact);

            cincinnati.Enroll();
            Assert.True("Chad" == cincinnati.ViewEnrolled()[0].Name);
            cincinnati.Deroll();
            Assert.True(0 == cincinnati.ViewEnrolled().Count);
        }