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; }
public Order(int id, Account account, LineItemCollection collection) { _id = id; _account = account; _collection = collection; }
public Order(int id, Account account, LineItem[] lineItemsArray) { _id = id; _account = account; _lineItemsArray = lineItemsArray; }
public Order(int id, Account account, IList lineItems) { _id = id; _account = account; _lineItemsIList = lineItems; }
public Order(int id, Account account) { _id = id; _account = account; }
public void Remove(Account value) { List.Remove(value); }
public void Insert(int index, Account value) { List.Insert(index, value); }
public int IndexOf(Account value) { return List.IndexOf(value); }
public void CopyTo(Account[] array, int index) { List.CopyTo(array, index); }
public bool Contains(Account value) { return List.Contains(value); }
public int Add(Account value) { return List.Add(value); }
/// <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"); }
/// <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"); }
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"); }