sInput());

    //Assert
    output.Items.Count.ShouldBe(2);
    <strong>output.Items.Count(t =&gt; t.AssignedPersonName != null).ShouldBe(1);
</strong>}</pre>

<p>Note: Count extension method requires <em>using System.Linq;</em> statement.</p>

<h3 id="ArticleShowPersonInTaskList">Show Assigned Person Name in the Task List Page</h3>

<p>Finally, we can change <strong>Tasks\Index.cshtml</strong> to show <strong> AssignedPersonName</strong>:</p>

<pre lang="xml">
@foreach (var task in Model.Tasks)
{
    &lt;