コード例 #1
0
        public void AmountZeroAndNameEmptyTest()
        {
            string amount = "0";
            string name   = "";
            string words  = "";

            AkqaController controller = new AkqaController();
            var            response   = controller.ConvertNumbers(name, amount);

            AkqaActionResult result = response as AkqaActionResult;

            Assert.AreEqual(words, result.apiResult.AmountInWords);
        }
コード例 #2
0
        public void GetExactContentTest()
        {
            string amount = "134.54";
            string name   = "Subhash Madhukar";
            string words  = "One Hundred Thirty Four Dollars AND Fifty Four Cents";

            AkqaController controller = new AkqaController();
            var            response   = controller.ConvertNumbers(name, amount);

            AkqaActionResult result = response as AkqaActionResult;

            Assert.AreEqual(words, result.apiResult.AmountInWords);
        }