Пример #1
0
 public void AddRange(AccountCollection value)
 {
     for (int i = 0;	i < value.Count; i++)
     {
         Add(value[i]);
     }
 }
Пример #2
0
 public void AddRange(AccountCollection value)
 {
     for (int i = 0; i < value.Count; i++)
     {
         Add(value[i]);
     }
 }
Пример #3
0
        public void TestQueryForListWithResultObject()
        {
            AccountCollection accounts = new AccountCollection();

            sqlMap.QueryForList("GetAllAccountsViaResultMap", null, accounts);

            AssertAccount1(accounts[0]);
            Assert.AreEqual(5, accounts.Count);
            Assert.AreEqual(1, accounts[0].Id);
            Assert.AreEqual(2, accounts[1].Id);
            Assert.AreEqual(3, accounts[2].Id);
            Assert.AreEqual(4, accounts[3].Id);
            Assert.AreEqual(5, accounts[4].Id);
        }