public void DashboardActiveItemCounts() { // Arrange //dashboard (active) counts LayoutController lc = new LayoutController(); lc.TestUser = user; DashboardViewModel dashboard = (DashboardViewModel)lc.Dashboard().ViewData.Model; int lProjectCount = dashboard.ActiveProjects.Count(); int lTaskCount = dashboard.ActiveTasks.Count(); int lActionCount = dashboard.ActiveActions.Count(); ////////////////////////////////////////// // Act //create project project = CreateProject(); //create task task = CreateTask(project.ID); //create action action = CreateAction(task.ID); ////////////////////////////////////////// //Assert Assert.AreEqual <int>(db.GetMyProjects(user).Count(), lProjectCount + 1); Assert.AreEqual <int>(db.GetMyTasks(user).Count(), lTaskCount + 1); Assert.AreEqual <int>(db.GetMyActions(user).Count(), lActionCount + 1); }