Пример #1
0
        public ActionResult <ChangeModel> Get(int amount, int pay)
        {
            var hackChangeMoney = new HackChangeMoney();
            var result          = hackChangeMoney.CalculateChange(amount, pay);

            return(result);
        }
Пример #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);
        }