예제 #1
0
        public void AddStudent()
        {
            var repo    = new TestRepository();
            var group   = repo.GetAllGroups().First();
            var student = new StudentModel
            {
                FirstName   = "",
                LastName    = "",
                Group       = group,
                GroupNumber = group.Number
            };

            int result = repo.AddStudent(student);

            Assert.IsTrue(result > 0);
        }