/// <summary> /// 原Main /// </summary> /// <param name="args"></param> static void Main1(string[] args) { //cron表达式 参考 http://www.cnblogs.com/sunjie9606/archive/2012/03/15/2397626.html //每隔5秒执行一次这个方法 //QuartzManager.AddJob<MyJob>("每隔5秒", "*/5 * * * * ?"); // test Finder //Arrange var article = new Article() { Title = "this is a title", Content = "this is content", Comment = "this is comment", Author = "this is author" }; //Act var result = WordFinder <Article> .For(article) .Find(x => x.Title) .Find(x => x.Content) .Find(x => x.Comment) .Find(x => x.Author) .Execute("content"); Console.WriteLine("\nWhat is your name? "); Console.WriteLine(result); Console.ReadKey(); }
public void Should_find_a_word() { //Arrange var article = new Article() { Title = "this is a title", Content = "this is content", Comment = "this is comment", Author = "this is author" }; //Act var result = WordFinder <Article> .For(article) .Find(x => x.Title) .Find(x => x.Content) .Find(x => x.Comment) .Find(x => x.Author) .Execute("content"); //Console.WriteLine("\nWhat is your name? "); //Console.WriteLine(result); //Console.ReadKey(); }