public void TestIfLoanOfficerIsCorrectlySetAndGet() { User user = new User {UserName = "******"}; _contract.LoanOfficer = user; Assert.IsTrue(user.Equals(_contract.LoanOfficer)); }
private void RefreshUser(User user) { foreach (ListViewItem item in lvUsers.Items) { if (!user.Equals(item.Tag as User)) continue; item.SubItems[6].Text = user.SubordinateCount.ToString(); } }