public void assignSubscribersToGroups() { assignSubscribersToGroups function = new assignSubscribersToGroups() { groups = new List <int>() { 3 }, subscribers = new List <string>() { "[email protected]_test2" } }; AbstractMailrelayReply reply = TestCall(function); Assert.AreEqual(1, reply.status); }
public void functionWithStringArrayCanBeUrlEncoded() { string expectedUrlEncoded = $"&function=assignSubscribersToGroups&groups%5b0%5d=1&groups%5b1%5d=4&subscribers%5b0%5d=test"; assignSubscribersToGroups function = new assignSubscribersToGroups() { groups = new List <int>() { 1, 4 }, subscribers = new List <string>() { "test" }, }; AssertToGet(function, expectedUrlEncoded); }