static void Main(string[] args) { Console.WriteLine("PastTest"); Agregator agr = new NewAgregator(); agr.AggregatorLogger("debug", "Test message"); Data data = new Data ( new Request ( new RtHeader() { idMsgType = 131 }, new Body(), new RFooter(DateTime.Now.ToString(), "999900000321") ), "this is RSA sign from buyer=іІїЇєЄ=" ); //Console.WriteLine(Serialization.Obj2XMLstring(data)); (agr as NewAgregator).Url = "https://10.1.1.1:9999/FlashPayX"; // ;http://www.albahari.com/EchoPost.aspx"; //"https://httpbin.org/post"; // "https://requestb.in/1asblx81"; //"https://212.42.94.131:9999/FlashPayX/"; // "https://10.1.1.1:9999/FlashPayX/"; CheckResponse checkResponse = (agr as NewAgregator).Check(123, //@"" @"<Data><Request><RqHeader><idMsgType>111</idMsgType><IdService>510</IdService><IdSubService>0</IdSubService><IdClient>10044163</IdClient></RqHeader><body></body><RqFooter><MsgDateTime>2016.10.28 01:05:12</MsgDateTime><IdTerminal>625350</IdTerminal><idKey>999900000384</idKey></RqFooter></Request><SignMsg>eAJjM6KjwzDKX/Do0QX7nnnGzYfMdQyPRP7Nn+e12QA96+NQnwvwQyPzPY2elN1xo6EjhBWI2DZbh8z9HUpeHYT74EaS5nwYgNWZ3gmo1+Z3DJcyNjI9n7ZWHRpPSV/iGb70/4SrcwBVVdZLdpe8xZFShPlrqZfZ8uf6ncjeHR8=</SignMsg></Data>іІїЇєЄ" //@"<Request><RqHeader><idMsgType>111</idMsgType><IdService>115</IdService><IdSubService>0</IdSubService><IdClient>0674040404</IdClient></RqHeader><body></body><RqFooter><MsgDateTime>2016.11.30 13:45:14</MsgDateTime><IdTerminal>345098</IdTerminal><idKey>999900000009</idKey></RqFooter></Request><SignMsg>this is RSA sign from buyer</SignMsg>" //Serialization.Obj2XMLstring(data) ); Console.WriteLine(checkResponse.JsonValue); Console.WriteLine("All Ok."); Console.ReadKey(); }
public void TestLoggerNullText() { Agregator agr = new NewAgregator(); agr.AggregatorLogger(null, ""); }
public void TestLoggerEmptyText() { Agregator agr = new NewAgregator(); agr.AggregatorLogger("", ""); }
public void TestLoggerAnyText() { Agregator agr = new NewAgregator(); agr.AggregatorLogger("debugg", ""); }