Exemplo n.º 1
0
        public void AddEntry(CheckDescription desc)
        {
            foreach (TypeChecks typeCheckse in this.runDescription)
            {
                if (typeCheckse.CheckedType == desc.CheckedType)
                {
                    typeCheckse.AddCheck(desc);
                    return;
                }
            }

            var addedType = new TypeChecks(desc.CheckedType);
            addedType.AddCheck(desc);
            this.runDescription.Add(addedType);
        }
Exemplo n.º 2
0
        public void AddEntry(CheckDescription desc)
        {
            foreach (TypeChecks typeCheckse in this.runDescription)
            {
                if (typeCheckse.CheckedType == desc.CheckedType)
                {
                    typeCheckse.AddCheck(desc);
                    return;
                }
            }

            var addedType = new TypeChecks(desc.CheckedType);

            addedType.AddCheck(desc);
            this.runDescription.Add(addedType);
        }