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(""); } } }
public TestConsumer(IAssociationStore store, Fetcher fetcher) : base(store, fetcher) { }
/// <summary> /// Initializes a new <see cref="Consumer"/> instance. /// </summary> public Consumer(IAssociationStore store, Fetcher fetcher) { this.store = store; this.fetcher = fetcher; }