Example #1
0
        private static void TestFetcher(Fetcher f)
        {
            f.Get(new Uri("http://localhost:9111/success"));

            FetchResponse actual;
            foreach (Case c in cases)
            {
            Console.Write("Fetching {0}...", c.fetchUri.ToString());
            try
            {
            try
            {
            actual = f.Get(c.fetchUri);
            c.expected.Test(actual);
            }
            catch (FetchException e)
            {
            c.expected.Test(e.response);
            }
            Console.Write("OK");
            }
            finally
            {
            Console.WriteLine("");
            }
            }
        }
Example #2
0
 public TestConsumer(IAssociationStore store, Fetcher fetcher)
     : base(store, fetcher)
 {
 }
Example #3
0
 /// <summary>
 /// Initializes a new <see cref="Consumer"/> instance.
 /// </summary>
 public Consumer(IAssociationStore store, Fetcher fetcher)
 {
     this.store = store;
     this.fetcher = fetcher;
 }