public void getStats() { getStats function = new getStats() { startDate = DateTime.Now.AddDays(1), endDate = DateTime.Now }; AbstractMailrelayReply reply = TestCall(function); Assert.AreEqual(1, reply.status); }
public void ToGetCreatesUrlEncodedRepresentationOfValues() { string expectedUrlEncoded = $"&function=getStats&id=1&startDate=2000-01-01+00%3a00%3a00&endDate=2001-01-01+00%3a00%3a00"; getStats function = new getStats() { startDate = new DateTime(2000, 1, 1), endDate = new DateTime(2001, 1, 1), id = 1, }; AssertToGet(function, expectedUrlEncoded); }