public void TestMethod2() { var log = new TraceWriterTest(TraceLevel.Off); var testValues = GetTestValues(); IDictionary <string, string> notif; fnTesteable1.Run("Message A", out notif, log); Assert.AreEqual(notif["message"], "Message A"); }
public void TestMethod1() { var log = new TraceWriterTest(TraceLevel.Off); var req = new HttpRequestMessage() { Method = HttpMethod.Get, RequestUri = new Uri("http://localhost:7071/api/fnTesteable2/readingX/%7B%22X%22:654%7D") }; var testValues = GetTestValues(); var result = testValues.Select(v => fnTesteable2.Run(req, v, log).Content).ToList(); Assert.AreEqual(testValues.Count, result.Count); }