Ejemplo n.º 1
0
        public AuditResultProcess IsNotJelloWorld(Location l)
        {
            var res = new List <StatusObject>();

            if (l.Name == "Jello World")
            {
                res.Add(new StatusObject(2, "Not Jello World", "This is Jello World!!!"));
            }
            else
            {
                res.Add(new StatusObject(2, "Not Jello World", "This is Jello World!!!"));
            }
            return(AuditTools.PipeResults(res));
        }
Ejemplo n.º 2
0
        public AuditResultProcess IsNotChad(Person p)
        {
            var res = new List <StatusObject>();

            if (p.Name == "Chad")
            {
                res.Add(new StatusObject(2, "Not Chad", "This is Chad!!!"));
            }
            else
            {
                res.Add(new StatusObject(0, "Not Chad", p.Name + " is not Chad!!!"));
            }
            return(AuditTools.PipeResults(res));
        }
Ejemplo n.º 3
0
        public AuditResultProcess IsOld(Person p)
        {
            var res = new List <StatusObject>();

            if (p.Age >= 30)
            {
                res.Add(new StatusObject(2, "Is Old", p.Name + " is sooooo old bruh!"));
            }
            else if (p.Age > 18)
            {
                res.Add(new StatusObject(0, "Is Old", p.Name + "is still prety young!"));
            }
            else
            {
                res.Add(new StatusObject(1, "Is Old", p.Name + "is a little too young!"));
            }

            return(AuditTools.PipeResults(res));
        }