Beispiel #1
0
 private void StoreListToProviderA()
 {
     ListHolder lh = CreateHolder();
     ListContent lc1 = new ListContent("c1");
     ListContent lc2 = new ListContent("c2");
     lh.Add(lc1);
     lh.Add(lc2);
     A().Provider().StoreNew(lh);
     A().Provider().Commit();
     EnsureContent(A(), new string[] {"h1"}, new string[] {"c1", "c2"});
 }
Beispiel #2
0
		public virtual void Add(ListContent obj)
		{
			list.Add(obj);
		}
Beispiel #3
0
 private void AddElementInProviderA()
 {
     ListHolder lh = (ListHolder) GetOneInstance
                                      (A(), typeof (ListHolder));
     lh.SetName("h3");
     ListContent lc3 = new ListContent("co3");
     A().Provider().StoreNew(lc3);
     lh.GetList().Add(lc3);
     A().Provider().Update(lh.GetList());
     A().Provider().Update(lh);
     A().Provider().Commit();
     EnsureContent(A(), new string[] {"h3"}, new string[] {"co1", "co2", "co3"});
 }
Beispiel #4
0
 public virtual void Add(ListContent obj)
 {
     list.Add(obj);
 }