コード例 #1
0
        public void ShouldBeCreateANewStudentAndReturnTheCurrentId()
        {
            var newStudent = new Student()
            {
                Type = TypeStudent.Elementary, Name = "Pepe", Gender = Gender.Female, LastUpdate = new TimeSpan()
            };
            var studentId = _studentDao.Insert(newStudent);

            Assert.IsNotNull(studentId);
            Assert.IsTrue(studentId > 0);
        }