From d1927f17e39e1009954f6ad44b7fca7480ef39d2 Mon Sep 17 00:00:00 2001 From: Tim Abell Date: Tue, 18 Aug 2015 07:44:47 +0100 Subject: [PATCH] typo fix - description sql parameter shouldn't affect anything Original patch by Svein Helge #mailto:svein.helge.grinden@gmail.comin PR #33 --- EfEnumToLookupTests/Tests/TestStuff.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EfEnumToLookupTests/Tests/TestStuff.cs b/EfEnumToLookupTests/Tests/TestStuff.cs index 3bbe946..d8f10b0 100644 --- a/EfEnumToLookupTests/Tests/TestStuff.cs +++ b/EfEnumToLookupTests/Tests/TestStuff.cs @@ -63,9 +63,9 @@ public void UsesDescriptionAttribute() { using (var context = new MagicContext()) { - const string sql = "select @desciption = name from Enum_Importance where id = @id"; + const string sql = "select @description = name from Enum_Importance where id = @id"; var idParam = new SqlParameter("id", (int)Importance.NotBovverd); - var outParam = new SqlParameter("desciption", SqlDbType.NVarChar, 255) { Direction = ParameterDirection.Output }; + var outParam = new SqlParameter("description", SqlDbType.NVarChar, 255) { Direction = ParameterDirection.Output }; context.Database.ExecuteSqlCommand(sql, idParam, outParam); var actualName = outParam.Value; Assert.AreEqual(Constants.BovveredDisplay, actualName);