public void NUnit_TAMScanLog_Domain_GetById() { string status = string.Empty; Att_TAMScanLogServices service = new Att_TAMScanLogServices(); var model = new Att_TAMScanLog { Id = 1 }; var result = service.GetById<Att_TAMScanLogEntity>(model.Id, ref status); NUnit.Framework.Assert.IsNotNull(result); Console.Write("SearchResult: " + result.Id + " | " + result.CardCode ); }
public void NUnit_TAMScanLog_Domain_Edit() { Att_TAMScanLogServices service = new Att_TAMScanLogServices(); var model = new Att_TAMScanLog { Id = 1 }; string result = service.Edit(model); if (result != string.Empty) { Console.WriteLine("Process Success >>> Update >>> " + model.Id + " | " + model.CardCode ); } }
public void NUnit_TAMScanLog_Domain_Remove() { Att_TAMScanLogServices service = new Att_TAMScanLogServices(); int rs = 0; var model = new Att_TAMScanLog { Id = 1 }; string result = service.Remove <Att_TAMScanLogEntity>(model.Id); if (result != string.Empty) { rs += 1; Console.WriteLine("Process Success >>> Remove >>> " + model.Id); } }
public void NUnit_TAMScanLog_Domain_GetById() { string status = string.Empty; Att_TAMScanLogServices service = new Att_TAMScanLogServices(); var model = new Att_TAMScanLog { Id = 1 }; var result = service.GetById <Att_TAMScanLogEntity>(model.Id, ref status); NUnit.Framework.Assert.IsNotNull(result); Console.Write("SearchResult: " + result.Id + " | " + result.CardCode ); }
public void NUnit_TAMScanLog_Domain_Add() { Att_TAMScanLogServices service = new Att_TAMScanLogServices(); string result = string.Empty; int countSC = 0; for (int i = 1; i <= 10; i++) { var model = new Att_TAMScanLog { Comment = "Comment : " + 1 }; result = service.Add(model); if (result != string.Empty) { countSC += 1; Console.WriteLine("Process Success >>> Create >>> " + model.Id ); } } Console.WriteLine("Total success record: " + countSC); }
public void NUnit_TAMScanLog_Domain_Remove() { Att_TAMScanLogServices service = new Att_TAMScanLogServices(); int rs = 0; var model = new Att_TAMScanLog { Id = 1 }; string result = service.Remove<Att_TAMScanLogEntity>(model.Id); if (result != string.Empty) { rs += 1; Console.WriteLine("Process Success >>> Remove >>> " + model.Id); } }