public static Audit Audit(int? counter, bool populateAllFields = false)
{
var rtValue = new Audit();
rtValue.ObjectName = "ObjectName" + counter.Extra();
rtValue.SetActionCode(AuditActionType.Create);
rtValue.Username = "Username" + counter.Extra();
rtValue.AuditDate = DateTime.Now;
if (populateAllFields)
{
rtValue.ObjectId = "x".RepeatTimes(50);
}
return rtValue;
}