Exemplo n.º 1
0
        private async void TestEntityDelete(StudentGroup studentGroupToDelete)
        {
            List <StudentGroup> studentGroupActual = await groupStorage.StudentGroupGetAll();

            await groupStorage.StudentGroupDelete(studentGroupToDelete);

            List <StudentGroup> actualStudentGroupAfterDelete = await groupStorage.StudentGroupGetAll();

            Assert.AreEqual(studentGroupActual.Count - 1, actualStudentGroupAfterDelete.Count);
            Assert.False(actualStudentGroupAfterDelete.Contains(studentGroupToDelete));
        }
Exemplo n.º 2
0
 public async Task DeleteStudentGroup([FromBody] StudentGroup student_Group)
 {
     await groupStorage.StudentGroupDelete(student_Group);
 }