Beispiel #1
0
        private void GetStudentList()
        {
            Students.Clear();
            SelectedStudent = null;

            foreach (var student in context.GetStudents())
            {
                Students.Add(student);
            }
        }
Beispiel #2
0
        public void GetStudentsList_ReturnsListOfStudentEntities()
        {
            //Arrange
            StudentsContext studentsContext = new StudentsContext();

            //Act
            var list = studentsContext.GetStudents();

            int countExpected = list.Count();

            //Assert
            Assert.IsTrue(countExpected == 8);
        }