Esempio n. 1
0
 public void InsertPostTest()
 {
     CrudBL.CrudBL target = new CrudBL.CrudBL(); // TODO: Initialize to an appropriate value
     string request = string.Empty; // TODO: Initialize to an appropriate value
     IUDResults expected = null; // TODO: Initialize to an appropriate value
     IUDResults actual;
     actual = target.InsertPost(request);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
Esempio n. 2
0
 public IUDResults Delete(string idInvoice)
 {
     try
     {
         using (CrudBL.CrudBL bl = new CrudBL.CrudBL())
         {
             IUDResults result = bl.Delete(idInvoice);
             return result;
         }
     }
     catch (Exception ex)
     {
         return new IUDResults(-1, ex.Message.ToString());
     }
 }
Esempio n. 3
0
 public void InsertTest()
 {
     CrudBL.CrudBL target = new CrudBL.CrudBL(); // TODO: Initialize to an appropriate value
     string Number = string.Empty; // TODO: Initialize to an appropriate value
     string concept = string.Empty; // TODO: Initialize to an appropriate value
     string description = string.Empty; // TODO: Initialize to an appropriate value
     string total = string.Empty; // TODO: Initialize to an appropriate value
     string dateI = string.Empty; // TODO: Initialize to an appropriate value
     string dateF = string.Empty; // TODO: Initialize to an appropriate value
     IUDResults expected = null; // TODO: Initialize to an appropriate value
     IUDResults actual;
     actual = target.Insert(Number, concept, description, total, dateI, dateF);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
Esempio n. 4
0
 public IUDResults Insert(string Number, string concept, string description, string total, string dateI, string dateF)
 {
     try
     {
         //Lock the object to manage the interlocking of the request
         lock (this.ThisLock)
         {
             using (CrudBL.CrudBL bl = new CrudBL.CrudBL())
             {
                 IUDResults result = bl.Insert(Number, concept, description, total, dateI, dateF);
                 return result;
             }
         }
     }
     catch (Exception ex)
     {
         return new IUDResults(-1, ex.Message.ToString());
     }
 }
Esempio n. 5
0
 public SearchResults ShowAll()
 {
     try
     {
         using (CrudBL.CrudBL bl = new CrudBL.CrudBL())
         {
             SearchResults result = bl.ShowAll();
             return result;
         }
     }
     catch (Exception ex)
     {
         return new SearchResults(-1, ex.Message.ToString());
     }
 }
Esempio n. 6
0
 public SearchResults Search(string invoiceNum)
 {
     try
     {
         using (CrudBL.CrudBL bl = new CrudBL.CrudBL())
         {
             SearchResults result = bl.Search(invoiceNum);
             return result;
         }
     }
     catch (Exception ex)
     {
         return new SearchResults(-1, ex.Message.ToString());
     }
 }
Esempio n. 7
0
 public IUDResults InsertPost(string request)
 {
     try
     {
         using (CrudBL.CrudBL bl = new CrudBL.CrudBL())
         {
             IUDResults result = bl.InsertPost(request);
             return result;
         }
     }
     catch (Exception ex)
     {
         return new IUDResults(-1, ex.Message.ToString());
     }
 }
Esempio n. 8
0
 public void SearchTest()
 {
     CrudBL.CrudBL target = new CrudBL.CrudBL(); // TODO: Initialize to an appropriate value
     string invoiceNum = string.Empty; // TODO: Initialize to an appropriate value
     SearchResults expected = null; // TODO: Initialize to an appropriate value
     SearchResults actual;
     actual = target.Search(invoiceNum);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }