示例#1
0
        public void SetUp()
        {
            SerilogConfig.Init();

            matcher = new TokenMatcher();
            parser  = new TokenParser();
        }
示例#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");
        }
示例#3
0
 public void SetUp()
 {
     matcher = new TokenMatcher();
 }