示例#1
0
 public void AddRange(Account[] value)
 {
     for (int i = 0;	i < value.Length; i++)
     {
         Add(value[i]);
     }
 }
 /// <summary>
 /// Verify that the input account is equal to the account(id=6).
 /// </summary>
 /// <param name="account">An account object</param>
 private void AssertAccount6(Account account)
 {
     Assert.That(account.Id, Is.EqualTo(6), "account.Id");
     Assert.That(account.FirstName, Is.EqualTo("Calamity"), "account.FirstName");
     Assert.That(account.LastName, Is.EqualTo("Jane"), "account.LastName");
     Assert.That(account.EmailAddress, Is.Null, "account.EmailAddress");
 }
 /// <summary>
 /// Create a new account with id = 6
 /// </summary>
 /// <returns>An account</returns>
 private Account NewAccount6()
 {
     Account account = new Account();
     account.Id = 6;
     account.FirstName = "Calamity";
     account.LastName = "Jane";
     account.EmailAddress = "*****@*****.**";
     return account;
 }
示例#4
0
		public Order(int id, Account account, LineItemCollection collection)
		{
			_id = id;
			_account = account;
            _collection = collection;
		}
示例#5
0
		public Order(int id, Account account, LineItem[] lineItemsArray)
		{
			_id = id;
			_account = account;
			_lineItemsArray = lineItemsArray;
		}
示例#6
0
		public Order(int id, Account account, IList lineItems)
		{
			_id = id;
			_account = account;
			_lineItemsIList = lineItems;
		}
示例#7
0
		public Order(int id, Account account)
		{
			_id = id;
			_account = account;
		}
示例#8
0
 public void Remove(Account value)
 {
     List.Remove(value);
 }
示例#9
0
 public void Insert(int index, Account value)
 {
     List.Insert(index, value);
 }
示例#10
0
 public int IndexOf(Account value)
 {
     return List.IndexOf(value);
 }
示例#11
0
 public void CopyTo(Account[] array, int index)
 {
     List.CopyTo(array, index);
 }
示例#12
0
 public bool Contains(Account value)
 {
     return List.Contains(value);
 }
示例#13
0
 public int Add(Account value)
 {
     return List.Add(value);
 }
示例#14
0
 /// <summary>
 /// Verify that the input account is equal to the account(id=1).
 /// </summary>
 /// <param name="account">An account object</param>
 protected void AssertGilles(Account account)
 {
     Assert.AreEqual(5, account.Id, "account.Id");
     Assert.AreEqual("Gilles", account.FirstName, "account.FirstName");
     Assert.AreEqual("Bayon", account.LastName, "account.LastName");
     Assert.AreEqual("*****@*****.**", account.EmailAddress, "account.EmailAddress");
 }
示例#15
0
 /// <summary>
 /// Verify that the input account is equal to the account(id=6).
 /// </summary>
 /// <param name="account">An account object</param>
 protected void AssertAccount6(Account account)
 {
     Assert.AreEqual(6, account.Id, "account.Id");
     Assert.AreEqual("Calamity", account.FirstName, "account.FirstName");
     Assert.AreEqual("Jane", account.LastName, "account.LastName");
     Assert.IsNull(account.EmailAddress, "account.EmailAddress");
 }
示例#16
0
 protected void AssertAccount2(Account account)
 {
     Assert.AreEqual(2, account.Id, "account.Id");
     Assert.AreEqual("Averel", account.FirstName, "account.FirstName");
     Assert.AreEqual("Dalton", account.LastName, "account.LastName");
     Assert.AreEqual("*****@*****.**", account.EmailAddress, "account.EmailAddress");
 }