public void GivenAProfessorService_WhenCallingGetAllProfessors_ThenRecieveAListWithAllProfessors() { //Given var professorService = new ProfessorService(); //When ICollection <Professor> actual = professorService.GetAllProfessors(); //Then Assert.Equal(3, actual.Count); }
public void GivenAProfessorService_WhenCallingDeleteProfessor_ThenProfessorIsDeleted() { //Given var professorService = new ProfessorService(); //When professorService.DeleteProfessor(1); var actual = professorService.GetAllProfessors(); //Then Assert.Equal(3, actual.Count); }