Skip to content

Commit

Permalink
Use 'nameof'
Browse files Browse the repository at this point in the history
  • Loading branch information
onionhammer committed Sep 12, 2015
1 parent faaa049 commit 010b1a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Wivuu.DataSeed.Tests/DataMigrations/AddDepartments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ protected override void Apply(DataSeedTestContext db)
db.Departments.Find(scienceDeptId)
.Update(new Dictionary<string, object>
{
["Name"] = "Science",
["School"] = school
[nameof(Department.Name)] = "Science",
[nameof(Department.School)] = school
})
.Default(() => db.Departments.Add(new Department { Id = scienceDeptId }));

Expand Down

0 comments on commit 010b1a5

Please sign in to comment.