using System; using System.Text; using NUnit.Framework; namespace BWP.ABCClient { [TestFixture] public class RequestTest { private const string MSG = "SHA1withRSAB2BFundTransfer0充值时间人民币01"; [Test] public void Request() { using (new MockWebServer()) { var request = new Request { Url = "http://localhost:5000/", RequestEncoding = Encoding.UTF8, ResponseEncoding = Encoding.UTF8, Message = MSG }; string receivedMsg = request.Run(); Console.WriteLine("client received:" + receivedMsg); } } } }