Created
December 25, 2017 22:38
-
-
Save bhdryrdm/3b6143eae2dcfe91e2da4a7a57ff8cd1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestMethod] | |
public void Delete() | |
{ | |
University university = new University(); | |
Department willBeDeletedDepartment = university.Department.FirstOrDefault(x => x.DepartmentID == 1); | |
university.Department.Delete(willBeDeletedDepartment); | |
university.PushToDB(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment