Exemplo n.º 1
0
 public async Task <ActionResult <StudentGroup> > GetStudentGroupById(int id)
 {
     if (id.Equals(null))
     {
         return(BadRequest("Id is empty"));
     }
     return(await groupStorage.StudentGroupGetById(id));
 }
Exemplo n.º 2
0
        private async void TestSelects()
        {
            List <StudentGroup> studentGroupActual = await groupStorage.StudentGroupGetAll();

            for (int i = 0; i < listStudentGroup.Count; i++)
            {
                Assert.Contains(listStudentGroup[i], studentGroupActual);
            }
            StudentGroup actualstudentGroup = await groupStorage.StudentGroupGetById((int)listStudentGroup[0].Id);

            Assert.AreEqual(listStudentGroup[0], actualstudentGroup);
        }