Catbert4.Tests.Core.Helpers.CreateValidEntities.Audit C# (CSharp) Method

Audit() public static method

public static Audit ( int counter, bool populateAllFields = false ) : Audit
counter int
populateAllFields bool
return Audit
        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;
        }