From 010b1a5596025c25eef89a611a9c2b0c484b6e98 Mon Sep 17 00:00:00 2001 From: Erik O'Leary Date: Fri, 11 Sep 2015 22:34:53 -0500 Subject: [PATCH] Use 'nameof' --- Wivuu.DataSeed.Tests/DataMigrations/AddDepartments.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Wivuu.DataSeed.Tests/DataMigrations/AddDepartments.cs b/Wivuu.DataSeed.Tests/DataMigrations/AddDepartments.cs index 9c68c3b..9b445ad 100644 --- a/Wivuu.DataSeed.Tests/DataMigrations/AddDepartments.cs +++ b/Wivuu.DataSeed.Tests/DataMigrations/AddDepartments.cs @@ -20,8 +20,8 @@ protected override void Apply(DataSeedTestContext db) db.Departments.Find(scienceDeptId) .Update(new Dictionary { - ["Name"] = "Science", - ["School"] = school + [nameof(Department.Name)] = "Science", + [nameof(Department.School)] = school }) .Default(() => db.Departments.Add(new Department { Id = scienceDeptId }));