public void SetUp()
        {
            SerilogConfig.Init();

            matcher = new TokenMatcher();
            parser  = new TokenParser();
        }
Exemple #2
0
        public void TestTokenMatcherCoCa()
        {
            var template = ReadTemplate("whois.co.ca");
            var input    = ReadData("available.co.ca");

            var matcher = new TokenMatcher();

            matcher.RegisterTemplate(template);

            var match = matcher.Match(input);

            Assert.AreEqual(match.BestMatch.First("DomainName"), "u34jedzcq.co.ca");
            Assert.AreEqual(match.BestMatch.First("Status"), "NotFound");
        }
 public void SetUp()
 {
     matcher = new TokenMatcher();
 }