public void MakeSureAccountsHaveCustomerTest() { var ah = new AccountHandler(); var result = ah.GetAccounts(); foreach (var account in result) { if (account.AccountCustomerId == 0) { Assert.Fail(); } } }