public void TransactionsOfEachType(Transaction.TransactionType type) { var transactionsFactory = new TransactionsFactory(); var transactions = transactionsFactory.GetTransactions().Take(50).ToList(); Assert.Contains(transactions, t => t.Type.Equals(type)); }
public void AccountNumberUnder100() { var transactionsFactory = new TransactionsFactory(); var transactions = transactionsFactory.GetTransactions().Take(50).ToList(); Assert.True(transactions.All(t => int.Parse(t.AccountNumber.Substring(3)) > 0 && int.Parse(t.AccountNumber.Substring(3)) <= 100)); }
public void TransactionsExists() { var transactionsFactory = new TransactionsFactory(); Assert.True(transactionsFactory.GetTransactions().Any()); }