示例#1
0
        /// <inheritdoc/>
        public override ExitCode Execute()
        {
            var feeds = FeedCache.ListAll().Select(x => x.ToStringRfc());

            if (AdditionalArgs.Count > 0)
            {
                feeds = feeds.Where(x => x.ContainsIgnoreCase(AdditionalArgs[0]));
            }

            Handler.Output(Resources.FeedsCached, feeds);
            return(ExitCode.OK);
        }
 public void ListAll()
 => _cache.ListAll()
 .Should().BeEquivalentTo(new[] { FeedTest.Test1Uri !, FeedTest.Test2Uri });