public ActionResult <ChangeModel> Get(int amount, int pay)
        {
            var hackChangeMoney = new HackChangeMoney();
            var result          = hackChangeMoney.CalculateChange(amount, pay);

            return(result);
        }
Beispiel #2
0
        public void InputNotEnoughToPayReturnStatusCode2(int expectedStatusCode, int expectedChange, int[] expectedBankCards, int amount, int pay)
        {
            var hackChangeMoney = new HackChangeMoney();
            var result          = hackChangeMoney.CalculateChange(amount, pay);

            Assert.Equal(expectedChange, result.Change);
            Assert.Equal(expectedBankCards, result.BankCards);
            Assert.Equal(expectedStatusCode, result.StatusCode);
        }