public void Setup()
 {
     _fileAccess  = new Mock <IFileAccess <string> >();
     _scriptCheck = new ScriptCheck(_fileAccess.Object, _settings);
     _rules       = new List <Rule>()
     {
         new Rule()
         {
             ScriptIdentifier = new List <string>()
             {
                 "tblPage"
             },
             ShouldNotContain = new List <string>()
         },
         new Rule()
         {
             ScriptIdentifier = new List <string>()
             {
                 "tblTest", "tblPage"
             },
             ShouldNotContain = new List <string>()
         },
         new Rule()
         {
             ScriptIdentifier = new List <string>()
             {
                 "tblCustomer"
             },
             ShouldNotContain = null
         },
         new Rule()
         {
             ScriptIdentifier = new List <string>()
             {
                 "tblPage"
             },
             ShouldNotContain = new List <string>()
             {
                 "PROCEDURE"
             }
         }
     };
 }
Exemplo n.º 2
0
 public void AddValidationPattern(string pattern, ScriptCheck shouldIssue)
 {
     _patterns.Add(
         new Pattern(new Regex(pattern, RegexStandardOptions), shouldIssue, pattern)
     );
 }
Exemplo n.º 3
0
 public void AddValidationPattern(string pattern, ScriptCheck shouldIssue)
 {
     _patterns.Add(
         new Pattern(new Regex(pattern, RegexStandardOptions), shouldIssue, pattern)
         );
 }