Beispiel #1
0
        public void AddStudent__Adds_A_Student()
        {
            User input    = _testAddUser;
            bool expected = true;

            _testClass.AddStudent(input);
            bool actual = _testClass.HasStudent(input);

            Assert.AreEqual(expected, actual);
        }
        public void Initialize()
        {
            _testSupervisor = new User
            {
                UserName = "******"
            };
            _testStudent = new User()
            {
                UserName = "******"
            };

            _testEducationClass = new EducationClass
            {
                ClassId               = "klass1",
                Description           = "Testklass",
                EducationSupervisorId = "supervisor"
            };
            _testEducationClass.AddStudent(_testStudent);

            var otherClass = new EducationClass
            {
                ClassId               = "klass2",
                Description           = "Should not be found",
                EducationSupervisorId = "someone"
            };

            var classList = new List <EducationClass> {
                _testEducationClass, otherClass
            };

            _testEducationClassStore = new EducationClassStore(classList);
        }