public void NUnit_HDTJob_Domain_Add() { Hre_HDTJobServices service = new Hre_HDTJobServices(); string result = string.Empty; int countSC = 0; for (int i = 1; i <= 10; i++) { var model = new Hre_HDTJob { ProfileID=1, DateFrom = DateTime.Now, DateTo = DateTime.Now, HDTType = "HDTType " + i, Description = "Description", }; result = service.Add(model); if (result != string.Empty) { countSC += 1; Console.WriteLine("Process Success >>> Create >>> " + model.Id + " | " + model.ProfileID + " | " + model.DateFrom + " | " + model.DateTo + " | " + model.HDTType + " | " + model.Description ); } } Console.WriteLine("Total success record: " + countSC); }
public void NUnit_HDTJob_Domain_Add() { Hre_HDTJobServices service = new Hre_HDTJobServices(); string result = string.Empty; int countSC = 0; for (int i = 1; i <= 10; i++) { var model = new Hre_HDTJob { ProfileID = 1, DateFrom = DateTime.Now, DateTo = DateTime.Now, HDTType = "HDTType " + i, Description = "Description", }; result = service.Add(model); if (result != string.Empty) { countSC += 1; Console.WriteLine("Process Success >>> Create >>> " + model.Id + " | " + model.ProfileID + " | " + model.DateFrom + " | " + model.DateTo + " | " + model.HDTType + " | " + model.Description ); } } Console.WriteLine("Total success record: " + countSC); }