public void NUnit_AllowLimitOvertime_Domain_Add() { Att_AllowLimitOvertimeServices service = new Att_AllowLimitOvertimeServices(); bool result = true; int countSC = 0; for (int i = 1; i <= 10; i++) { var model = new Att_AllowLimitOvertime { ProfileID = 3, LevelAllowLimit = 4 }; result = service.Add(model); NUnit.Framework.Assert.IsTrue(result); if (result == true) { countSC += 1; Console.WriteLine("Process Success >>> Create >>> " + model.Id + " | " + model.LevelAllowLimit ); } } Console.WriteLine("Total success record: " + countSC); }
public void NUnit_AllowLimitOvertime_Domain_GetById() { Att_AllowLimitOvertimeServices service = new Att_AllowLimitOvertimeServices(); var model = new Att_AllowLimitOvertime { Id = 5 }; var result = service.Get(model.Id) as Att_AllowLimitOvertime; NUnit.Framework.Assert.IsNotNull(result); Console.Write("SearchResult: " + result.Id + " | " + result.ProfileID + " | " + result.LevelAllowLimit ); }
public void NUnit_AllowLimitOvertime_Domain_GetById() { Att_AllowLimitOvertimeServices service = new Att_AllowLimitOvertimeServices(); var model = new Att_AllowLimitOvertime { Id = 5 }; var result = service.Get(model.Id) as Att_AllowLimitOvertime; NUnit.Framework.Assert.IsNotNull(result); Console.Write("SearchResult: " + result.Id + " | " + result.ProfileID + " | " + result.LevelAllowLimit ); }
public void NUnit_AllowLimitOvertime_Domain_Delete() { Att_AllowLimitOvertimeServices service = new Att_AllowLimitOvertimeServices(); int rs = 0; var model = new Att_AllowLimitOvertime { Id = 4 }; bool result = service.Delete(model.Id); NUnit.Framework.Assert.IsTrue(result); if (result == true) { rs += 1; Console.WriteLine("Process Success >>> Delete >>> " + model.Id); } }
public void NUnit_AllowLimitOvertime_Domain_Edit() { Att_AllowLimitOvertimeServices service = new Att_AllowLimitOvertimeServices(); var model = new Att_AllowLimitOvertime { Id = 2, ProfileID = 3, LevelAllowLimit = 4 }; bool result = service.Edit(model); NUnit.Framework.Assert.IsTrue(result); if (result == true) { Console.WriteLine("Process Success >>> Update >>> " + model.Id + " | " + model.ProfileID + " | " + model.LevelAllowLimit ); } }
public void NUnit_AllowLimitOvertime_Domain_Add() { Att_AllowLimitOvertimeServices service = new Att_AllowLimitOvertimeServices(); bool result = true; int countSC = 0; for (int i = 1; i <= 10; i++) { var model = new Att_AllowLimitOvertime { ProfileID = 3, LevelAllowLimit = 4 }; result = service.Add(model); NUnit.Framework.Assert.IsTrue(result); if (result == true) { countSC += 1; Console.WriteLine("Process Success >>> Create >>> " + model.Id + " | " + model.LevelAllowLimit ); } } Console.WriteLine("Total success record: " + countSC); }
public void NUnit_AllowLimitOvertime_Domain_Edit() { Att_AllowLimitOvertimeServices service = new Att_AllowLimitOvertimeServices(); var model = new Att_AllowLimitOvertime { Id = 2, ProfileID = 3, LevelAllowLimit = 4 }; bool result = service.Edit(model); NUnit.Framework.Assert.IsTrue(result); if (result == true) { Console.WriteLine("Process Success >>> Update >>> " + model.Id + " | " + model.ProfileID + " | " + model.LevelAllowLimit ); } }
public void NUnit_AllowLimitOvertime_Domain_Delete() { Att_AllowLimitOvertimeServices service = new Att_AllowLimitOvertimeServices(); int rs = 0; var model = new Att_AllowLimitOvertime { Id = 4 }; bool result = service.Delete(model.Id); NUnit.Framework.Assert.IsTrue(result); if (result == true) { rs += 1; Console.WriteLine("Process Success >>> Delete >>> " + model.Id); } }