Created
December 25, 2017 22:34
-
-
Save bhdryrdm/25c7bc17035895631c3981bbef7b3ae5 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 Update() | |
{ | |
University university = new University(); | |
Department willBeUpdatingDepartment = university.Department.FirstOrDefault(x => x.DepartmentID == 1); | |
willBeUpdatingDepartment.DepartmentName = "UpdatingDepartment"; | |
university.Department.Update(willBeUpdatingDepartment); | |
university.PushToDB(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment