public async Task ExpenseRepository_GetTeamCount_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); var count = await target.GetTeamCountAsync(managerIdentity, expenseStatus); Assert.IsTrue(count > 0); }