예제 #1
0
 public void TestIfLoanOfficerIsCorrectlySetAndGet()
 {
     User user = new User {UserName = "******"};
     _contract.LoanOfficer = user;
     Assert.IsTrue(user.Equals(_contract.LoanOfficer));
 }
예제 #2
0
파일: UserForm.cs 프로젝트: TalasZh/opencbs
        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();
            }
        }