Ejemplo n.º 1
0
 public void DapperOnlyReturnOneItem()
 {
     var sqlHelper = new SqlServerHelper(ConnectionString);
     string storedName = "usp_Blog_GetUserByName";
     User user = sqlHelper.GetItem<User>(storedName, new { UserName = "******" });
     Assert.AreEqual("toan", user.UserName);
 }