public void TestToProcess(int numberAccount, int numberBalancesCreated) { var date = DateTime.Today; var accounts = AccountFactory.CreateList(numberAccount); foreach (Account account in accounts.GetRange(0, numberBalancesCreated)) { BalanceFactory.Create(x => x.Account = account); } var result = _repository.ToProcess(date, accounts); ////check Assert.AreEqual(result.Select(x => x.Id), accounts.Select(x => x.Id)); Assert.AreEqual(result.Count, accounts.Count); }