public void GetAllStudentTest()
        {
            // Act
            IEnumerable <Student> students = _studentDbRepository.GetAllStudents();

            // Assert
            Assert.AreEqual(_studentsdata.ElementAt(0), students.ElementAt(0));
            Assert.AreEqual(_studentsdata.ElementAt(1), students.ElementAt(1));
            Assert.AreEqual(_studentsdata.ElementAt(2), students.ElementAt(2));
        }
Ejemplo n.º 2
0
 public IHttpActionResult GetAll()
 {
     return(Ok(_studentDbRepository.GetAllStudents()));
 }
Ejemplo n.º 3
0
 // GET: api/Export
 public IHttpActionResult Get()
 {
     Zipper.ZipExams(_studentDbRepository.GetAllStudents());
     byte[] array = Zipper.ExportedExams();
     return(new SkeletResponse(array, Request, "Export.zip"));
 }