Ejemplo n.º 1
0
 public void CreateBO()
 {
     adapter = new BusinessBeanAdapter();
     client.Marshaller.RegisterBO(adapter.Type, typeof(BusinessBean));
     note = new BusinessBean().SetType("Note")
                                           .SetTitle("Note")
                                           .SetNote("Note content");
     note = (BusinessBean)document.SetAdapter(adapter).Post(note.SetName("Note")).Result;
     Assert.NotNull(note);
     Assert.Equal("Note content", note.Note);
 }
 public void CreateBO()
 {
     adapter = new BusinessBeanAdapter();
     client.Marshaller.RegisterBO(adapter.Type, typeof(BusinessBean));
     note = new BusinessBean().SetType("Note")
            .SetTitle("Note")
            .SetNote("Note content");
     note = (BusinessBean)document.SetAdapter(adapter).Post(note.SetName("Note")).Result;
     Assert.NotNull(note);
     Assert.Equal("Note content", note.Note);
 }
Ejemplo n.º 3
0
 public void UpdateBO()
 {
     note = (BusinessBean)document.Put(note.SetDescription("My new description")).Result;
     Assert.NotNull(note);
     Assert.Equal("My new description", note.Description);
 }
 public void UpdateBO()
 {
     note = (BusinessBean)document.Put(note.SetDescription("My new description")).Result;
     Assert.NotNull(note);
     Assert.Equal("My new description", note.Description);
 }