示例#1
0
 public Account(int identifiant, string firstName, string lastName, Document document)
 {
     id = identifiant;
     _firstName = firstName;
     _lastName = lastName;
     _document = document;
 }
		public void Remove(Document value) {
			List.Remove(value);
		}
		public void Insert(int index, Document value) {
			List.Insert(index, value);
		}
		public int IndexOf(Document value) {
			return List.IndexOf(value);
		}
		public void CopyTo(Document[] array, int index) {
			List.CopyTo(array, index);
		}
		public bool Contains(Document value) {
			return List.Contains(value);
		}
		public void AddRange(Document[] value) {
			for (int i = 0;	i < value.Length; i++) {
				Add(value[i]);
			}
		}
		public int Add(Document value) {
			return List.Add(value);
		}
示例#9
0
 void AssertDocument(Document document, int id, string title)
 {
     Assert.AreEqual(id, document.Id);
     Assert.AreEqual(title, document.Title);
 }