• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 380
  • Last Modified:

I need to create a lambda expression for unit testing in C#

The HtmlHelper I created accepts a lambda such as:

model => model.EmailAddr

and the helper works fine when its my View creating the lamda. But I need to create it in my unit test and am not sure of the syntax to creates it.

Does anyone know?

Thanks!
0
newbieweb
Asked:
newbieweb
2 Solutions
 
Easwaran ParamasivamCommented:
0
 
newbiewebAuthor Commented:
Thanks!
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now