private static void Send(int statusCode) { var inner = new MockStatusCodeSender(statusCode); var sender = new StatusCodeSender(inner); sender.Send(new Request()); }
public void Test200Response() { var sender = new StatusCodeSender(new MockStatusCodeSender(200)); var response = sender.Send(new Request()); Assert.AreEqual(200, response.StatusCode); }
private static void AssertSend(int statusCode) { var sender = new StatusCodeSender(new MockStatusCodeSender(statusCode)); sender.Send(new Request()); }