Exemple #1
0
        public void DefaultRejectCommandToJsonTest()
        {
            Reject reject = new Reject();

            string json = reject.toJson();

            Assert.IsNotNull(json);
            Assert.AreEqual(json, "{\"Reject\":{}}");
        }
Exemple #2
0
        public void RejectCommandToJsonTest()
        {
            Reject reject = new Reject();

            reject.setReason("not available right now");

            string json = reject.toJson();

            Assert.IsNotNull(json);
            Assert.AreEqual(json, "{\"Reject\":{\"reason\":\"not available right now\"}}");
        }