public async Task ExpenseRepository_GetTeamExpenses_Test() { var context = new MyCompanyContext(); var managerIdentity = context.Employees.FirstOrDefault(e => e.ManagedTeams.Any() && e.Expenses.Any()).Email; int expenseStatus = (int)(ExpenseStatus.Approved | ExpenseStatus.Denied | ExpenseStatus.Pending); PictureType pictureType = PictureType.Small; int number = 1; var results = await target.GetTeamExpensesAsync(managerIdentity, expenseStatus, pictureType, number, 0); Assert.IsNotNull(results); Assert.IsTrue(results.Any()); Assert.IsTrue(results.Count() == 1); Assert.IsNotNull(results.First().Employee); Assert.IsNotNull(results.First().Employee.EmployeePictures); Assert.IsTrue(results.First().Employee.EmployeePictures.Count() == 1); }