Пример #1
0
 public void Validate_1()
 {
     using (Service.Accounts accounts = new Service.Accounts())
     {
         var customer = accounts.GetCustomer(1);
     }
 }
Пример #2
0
 public void Validate_2()
 {
     using (Service.Accounts accounts = new Service.Accounts())
     {
         var customer = accounts.InsertCustomer(new Entities.Customer()
         {
             User = new Entities.User()
             {
                 Username = "******"
             },
             Address = "Barueri, SP (Brasil)",
             PhoneNumer = 9,
             Fullname = "André Alberto Furlan"
         });
     }
 }