public StatusCollection ExecuteAudit(Person person) { var testPerson = new Person("Chad", 35); var auditz = new List <AuditRunner.AuditMethod <Person> >() { AuditTools.AttributesAreSame(testPerson, new string[] { "Age" }), IsNotChad, IsOld }; StatusCollection results = AuditRunner.RunAudits <Person>(person.Name /*Name for result collections*/, person /* Object to run audits on*/, auditz /* Audits to run */); return(results); }
public StatusCollection ExecuteAudit(Location location) { var testLoc = new Location("", new Coordinate(0, 0), 5.6m); var auditz = new List <AuditRunner.AuditMethod <Location> >() { AuditTools.LocationPopular, AuditTools.NotInNawamin, AuditTools.AttributesAreSame(testLoc, new string[] { "Rating" }), IsNotJelloWorld }; StatusCollection results = AuditRunner.RunAudits <Location>(location.Name /*Name for result collections*/, location /* Object to run audits on*/, auditz /* Audits to run */); return(results); }