Example #1
0
 public async Task <ActionResult <TeacherGroup> > TeacherGroupGetById(int id)
 {
     if (id.Equals(null))
     {
         return(BadRequest("Id is empty"));
     }
     return(await groupStorage.TeacherGroupGetById(id));
 }
Example #2
0
        private async Task TestSelects()
        {
            List <TeacherGroup> teacherGroupActual = await groupStorage.TeacherGroupGetAll();

            for (int i = 0; i < listTeacherGroup.Count; i++)
            {
                Assert.Contains(listTeacherGroup[i], teacherGroupActual);
            }
            TeacherGroup actualteacherGroup = await groupStorage.TeacherGroupGetById((int)listTeacherGroup[0].Id);

            Assert.AreEqual(listTeacherGroup[0], actualteacherGroup);
        }